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!
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.
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 /share (/dev/hda8) drive that i use for winxp and rh9 data.
following is the fstab entry for /share.
<fstab entry>
/dev/hda8 /share vfat defaults,umask=0 0 0
i can create new folders through nautilus but not new files. is this somethin to do with the fstab entry? i use the touch command as of now.
I would recommend that you use the uid= and gid= options in your fstab entry. This will allow you full access to the partition yourself, (uid=<your user name>) and to be able to control which users have access to the files. For the latter part, you might want a umask of 007 or something similar to deny access to 'others' for new files created.
These two options exist because you can't use chmod with a mounted vfat partition. But you can set the owner and group in the mount command.
Also, doing it this way will automatically mount the partition for you, so you don't need to mount or remount the partition to gain access ,as in the user option..
So if your user name is 'hippy2981', the fstab entry might look like this:
/dev/hda8 /share vfat defaults,uid=hippy2981,gid=fileshare,umask=007 0 0
Mandrake Linux has a fileshare group for the purpose of controlling access to shared partitions, which is why I used the name. Debian may have a similar group. However, you can create your own group for this purpose. For example, imagine parents having their correspondence and records on a separate partition. Both mom and dad share this partition, but the files are to important, or private, so they don't want the kids to have access. Creating a 'parent' group would allow controlling access. They may have a second group called 'family' which is used to share files amongst everyone in the family.
as of now even root and user can create files on the /share. however only through nautilus is that i cant see the "create empty file" option. i can "create a new folder" though nautilus. for creating new file, i just use the touch command even for root. i can even copy and paste the file when in user mode.
i did try the things mentioned in the above post. they didnt work.
the following fstab didnt give me what i wanted.
/dev/hda8 /share vfat users,owner,rw,umask=000 0 0
i hope you all get my point. i dont have a problem creating files in the /share partition. it's that i have problems creating them through nautilus. i can create through "touch'.
besides i can create folders thru nautilus. thats why i wondered if there was a problem in my fstab entry. this is odd. since i used to create files thru nautilus in fc2.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.