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.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have newly created filesystem on one of my partitions. After that I am not able to paste anything into it. What is the reason?
Even after mounting it also?
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.
> 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.
I didnot understand what u meant to say. Plz elaborate it a bit more.
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855
Rep:
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
-------------------------
[snip]
/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.
Chaitanya.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.