[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

Ownership of mounted volume



The devices:

brw-rw----  1 root disk 3, 65 2005-05-10 10:20 /dev/hdb1
brw-rw----  1 root disk 8, 17 2005-06-24 11:49 /dev/sdb1

/etc/fstab:

/dev/hdb1       /mnt/hdb1       ext3    user,rw,exec,auto       0 1
/dev/sdb1       /mnt/sda1       auto    rw,user,exec,noauto     0  0

The mount points before 'mount':

$ d /mnt
total 80
drwxr-xr-x   2 root root 4096 2003-12-09 10:14 sda1/
drwxr-xr-x   2 root root 4096 2004-03-04 15:39 hdb1/


Mounting both as user 'js':

$ mount /mnt/sda1
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sdb1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
$ mount /mnt/hdb1
kjournald starting.  Commit interval 5 seconds
EXT3 FS on hdb1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.

$ mount
/dev/sdb1 on /mnt/sda1 type ext3 (rw,nosuid,nodev,user=js)
/dev/hdb1 on /mnt/hdb1 type ext3 (rw,nosuid,nodev,user=js)

The user's groups:

js adm disk dialout cdrom floppy audio src video staff

Now the problem:  I can touch or create a file on /mnt/hdb1 but not on
/mnt/sda1:

$ touch /mnt/sda1/xx
touch: cannot touch `/mnt/sda1/xx': Permission denied
08:45:45 js@burger:/home$ touch /mnt/hdb1/xx

The mount points after the volumes have been mounted:

drwxr-xr-x   4 root root 4096 2005-06-24 16:41 sda1/
drwxr-xr-x  10 js   js   4096 2005-06-27 08:37 hdb1/


Why the difference in ownership?


Regards
Johann

-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "For I am not ashamed of the gospel of Christ; for it 
      is the power of God unto salvation to every one that 
      believeth; to the Jew first, and also to the Greek."  
                             Romans 1:16 
_______________________________________________
LinuxManagers mailing list - http://www.linuxmanagers.org
submissions: LinuxManagers@xxxxxxxxxxxxxxxxx
subscribe/unsubscribe: http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers

[Home]     [Kernel List]     [Linux SCSI]     [Video 4 Linux]     [Linux Admin]     [Yosemite News]     [Motherboards]

Powered by Linux