Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
i have a partition that lists on Ubuntu as a VFAT drive, sda3. in the properties it says root is the owner and that it is part of plugdev group. i'm trying to save image files to it and it won't let me. i get an error message that says i cannot change the content of the folder. when i ls -l the drive it says:
dr-xr-x--- 9 root plugdev 16384 2007-05-21 22:35 My Pictures
i tried "chmod o=rwx /media/sda3/jwindoc/'My Pictures' " as root and none of the other permission changed. how can i get access to this folder to save stuff? i can open and view images in it, but i can't put any into it.
This example assumes that your user account is a member of the users user group. You can check this by entering the following command in a terminal window.
The objective of this procedure is to get the mounted VFAT partition to be owned by the root user account and the users user group. Then we will set the permissions to allow the members of the users group to write files into that mounted partition.
i used /media. that also changed ALL the directories on sda6, the SUSE partition on my machine. (it also changed sda1, my MS partition, but i'm guessing that i won't have to worry about. please tell me i'm right.) so, am i gonna have to uninstall SUSE and reinstall to get the permissions corrected?
What exactly did you change. Post your /etc/fstab entries for this partitions.
Also post the output of the "mount" command without options.
I've never seen an fstab entry where the gid or uid entry is in parenthesis. You can use your username instead. SuSE starts uids at 1000. Other distro's start them at 500. I prefer using a username instead of a UID number.
Just so that you know, since the vfat filesystem doesn't save permissions for each file, the uid= and gid= values and the umask value (or separate dmask and fmask values) that you have in your fstab entry will change these values globally for the entire filesystem. ( I.E. the contents of /dev/sda3 in your example )
/dev/sda7 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.20-16-generic/volatile type tmpfs (rw)
/dev/disk/by-uuid/48DCEFCBDCEFB17C on /media/sda1 type fuseblk (rw,nosuid,nodev,noatime,allow_other,blksize=4096)
/dev/sda2 on /media/sda2 type vfat (rw,utf8,umask=007,gid=46)
/dev/sda3 on /media/sda3 type vfat (rw,utf8,dmask=0000,fmask=0111,gid=46)
/dev/sda6 on /media/sda6 type ext3 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
If you are the only user of the partition, you could use the "uid=" option and make yourself the owner of the mounted filesystem. For example "uid=deretsigernu,user". The user option will allow you to mount the filesystem as a normal user.
One possibility is that the hotplug setup is conflicting with the fixed fstab setup. Media commonly used for removable drives rather than partitions on your main drive. The dmask and fmask values you used for /dev/sda3 look OK, but: