Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
What are the permissions set up by a) the mount and b) the root directory of the file system?
To answer the first, tell us what the device is (example /dev/sdb1) and the output of cat /proc/mounts and what is the output of ls -ld of the mount point directory (example: if mounted at /mnt/hd of ls -ld /mnt/hd).
output of /proc/mounts
dev/sda7 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/chaitanya/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=chaitanya)
/dev/sda8 on /media/Ubuntu type ext3 (rw,nosuid,nodev,uhelper=udisks)
/dev/sda10 on /media/8738e73c-a76b-4b9d-90ba-0af71794928a type ext2 (rw,nosuid,nodev,uhelper=udisks)
IDK what uhelper=udisks does but the ls output makes the root directory of the file system writeable only by root and logons in the disks group -- and directory contents listable by no logons which is not going to be much use.
Distribution: Slackware (mainly) and then a lot of others...
Looks like there is an issue with permissions on the partition (since you say that root can write to it).
If you want the partition to be accessible to all (read and write) the best option is to add it in /etc/fstab. Read the man page for fstab.
Hope this helps.
output of /proc/mounts
/dev/sda10 on /media/8738e73c-a76b-4b9d-90ba-0af71794928a type ext2 (rw,nosuid,nodev,uhelper=udisks)[snip]
chaitanya@chaitu:~$ ls -ld /dev/sda10
brw-rw---- 1 root disk 8, 10 2010-11-27 09:22 /dev/sda10
The output of the ls command shows that logon root and (logons in the) disk group have read and write permission but not execute; everyone else has no permissions at all. More information about ls command output here. A full explanation including the effect of execute permission (or not) on a directory here. In simple terms a directory needs to be rwx for the user for everyday use.
but i have another partition /dev/sda3 (primary partition)
chaitanya@chaitu:~$ ls -ld /dev/sda3
brw-rw---- 1 root disk 8, 3 2010-11-27 19:39 /dev/sda3
even its permissions are the same but i am able to read and write into it.
Sorry for my oversight -- you gave ls -ld output for the file system's device file, not for its mount point directory. If it is still mounted at the same place (as shown by the /proc/mounts file) then please post the output of /bin/ls -ld /media/8738e73c-a76b-4b9d-90ba-0af71794928a