The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Write Permission

    Discussion in 'Linux Compatibility and Software' started by graycolor, Apr 26, 2009.

  1. graycolor

    graycolor Notebook Evangelist

    Reputations:
    30
    Messages:
    459
    Likes Received:
    0
    Trophy Points:
    30
    How do I gain permission to write into certain folders. While I'm in root debian still won't allow me to edit a file.
     
  2. proxima_centauri

    proxima_centauri Notebook Consultant

    Reputations:
    59
    Messages:
    196
    Likes Received:
    0
    Trophy Points:
    30
    Exactly what file are you trying to edit. If you have root privileges you should be able to edit almost any file.
     
  3. Enunes

    Enunes Notebook Consultant

    Reputations:
    156
    Messages:
    204
    Likes Received:
    0
    Trophy Points:
    30
    Hi,

    proxima_centauri is right, you should be able to edit anything at root.

    As for giving permissions to your normal user, you can
    a) change file permissions with chmod (view man chmod for details) or
    b) change the owner/group of that file for yourself/one of your groups with chown/chgrp (view man chown and man chgrp).

    Btw, dont know about your distro, but i guess some X configs won't allow you to open gui based editors while on root account. If that is the case, either open the editor with sudo at normal account and load the file or edit it with vi/nano at root.
     
  4. v1k1ng1001

    v1k1ng1001 Notebook Deity

    Reputations:
    239
    Messages:
    738
    Likes Received:
    0
    Trophy Points:
    30
    maybe he's talking about editing files in ntfs?
     
  5. graycolor

    graycolor Notebook Evangelist

    Reputations:
    30
    Messages:
    459
    Likes Received:
    0
    Trophy Points:
    30
    Sorry about not replying earlier, but I found the solution. I was trying to copy a file through the gui and not the command line. After being logged in root and using the command line everything works.

    It seems I have made a beginners mistake, so far learning Linux been really fun. :)
     
  6. v1k1ng1001

    v1k1ng1001 Notebook Deity

    Reputations:
    239
    Messages:
    738
    Likes Received:
    0
    Trophy Points:
    30
    i am wondering how to mount my ext4 drives in windows

    I am not sure it can be done yet
     
  7. proxima_centauri

    proxima_centauri Notebook Consultant

    Reputations:
    59
    Messages:
    196
    Likes Received:
    0
    Trophy Points:
    30
    v1k1ng1001,
    As far as I know, no - it cannot be done.
    It will be a while before the fs-driver folks get ext4 working.
    Best to stick with an NTFS or FAT32 drive to share files between Linux & Windows
     
  8. v1k1ng1001

    v1k1ng1001 Notebook Deity

    Reputations:
    239
    Messages:
    738
    Likes Received:
    0
    Trophy Points:
    30
    Yeah, in the past I've used fs-driver to mount ext3. Maybe I'll carve out another ext3 partition for sharing.
     
  9. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    Make sure the drive isn't mounted read-only. The only reason that that root couldn't write to a file is because the filesystem is read-only.