Find the answer to your Linux question:
Results 1 to 4 of 4
Hello, I recently upgraded the Motherboard and CPU on my linux box. The previous box was running SuSe11.2 and the new one is running 11.2. When I upgraded the system ...
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    2

    File Permission Problems

    Hello,

    I recently upgraded the Motherboard and CPU on my linux box. The previous box was running SuSe11.2 and the new one is running 11.2.

    When I upgraded the system I transferred 5 hard drives from the old box. The old drives are formatted with Reiser.

    For some reason, I think it copied over the old UIDs from the previous machine. Now I can not chmod or chown any of the files as it returns "Permission Denied, Read Only" The drives are not mounted read only.

    How can I take ownership of these files to change the permissions?

    Thanks

  2. #2
    Just Joined! dmk06's Avatar
    Join Date
    Jun 2010
    Location
    San Diego
    Posts
    37

    chown

    Have you tried it as root?
    Code:
    $su
    #chown <username> <filename>
    <username> is the user you want to change ownership to
    <filename> is the path to the file & filename eg: /home/username/file-to-chown
    use -R for recursive (* and . work with this to save time)

    chown - Change file ownership

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Posts
    2
    yes, I have tried as root and it is not mounted r/o

  4. #4
    Just Joined! dmk06's Avatar
    Join Date
    Jun 2010
    Location
    San Diego
    Posts
    37
    looks like this will work:
    (su instead of sudo)
    chown and chmod will work fine after this:
    1. Check Your user's id (UID). For the example, mine is 1000 and used in 3.
    2. Go to terminal and with root access edit /etc/fstab
    sudo gedit /etc/fstab
    3. Paste this utf8,umask=0000,uid=1000,gid=1000 in the <options> section, save and exit
    4. In the terminal: sudo umount -a
    5. In the terminal: sudo mount -a
    source:http://www.linuxforums.org/forum/deb...permitted.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...