Find the answer to your Linux question:
Results 1 to 4 of 4
I have some mounted drives i am trying to change the ownership on, so they can be accessed on the LAN via NFS by someone other than root, but neither ...
  1. #1
    Just Joined!
    Join Date
    Apr 2006
    Posts
    1

    chown/chmod operation not permitted

    I have some mounted drives i am trying to change the ownership on, so they can be accessed on the LAN via NFS by someone other than root, but neither the volumes nor their sub-directories can be changed. I have tried to do it both by logging in as root as well as SU my personal account. This is the result I always get. Thanks in advance for any ideas.

    debian:/# chown -v ryan:ryan /mnt/hdc1
    failed to change ownership of `/mnt/hdc1' to ryan:ryan
    chown: changing ownership of `/mnt/hdc1': Operation not permitted
    debian:/# chmod -v 777 /mnt/hdc1
    mode of `/mnt/hdc1' changed to 0777 (rwxrwxrwx)
    debian:/# ls -l /mnt/
    total 16
    drwxr-xr-x 4 root root 16384 1969-12-31 17:00 hdc1
    debian:/#

    As you can see, chown just won't work, but the chmod doesnt give me any error messages, it just doesn't change the ownership..... I am stuck.

  2. #2
    Linux Engineer Zelmo's Avatar
    Join Date
    Jan 2006
    Location
    Riverton, UT, USA
    Posts
    1,001
    Check out the later posts in this thread.
    Stand up and be counted as a Linux user!

  3. #3
    Just Joined!
    Join Date
    Aug 2008
    Posts
    1

    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

  4. #4
    Linux User
    Join Date
    Feb 2006
    Posts
    484
    Do a reguler user who is logged in on the computert can access the drives?

Posting Permissions

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