Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 11-21-2004, 05:59 AM   #1
LQ Newbie
Registered: Nov 2004
Location: Dallas, TX.
Distribution: FC4
Posts: 13

Rep: Reputation: 0
creating new file problem

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.

anyone please help??
Old 11-21-2004, 07:14 AM   #2
Registered: Oct 2004
Posts: 77

Rep: Reputation: 15
perhaps you have to add what kind of access should be permitted on the drive

check out: for detailed explanations (point 5)
Old 11-21-2004, 07:55 AM   #3
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 679Reputation: 679Reputation: 679Reputation: 679Reputation: 679Reputation: 679
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.
Old 11-23-2004, 03:55 AM   #4
LQ Newbie
Registered: Nov 2004
Location: Dallas, TX.
Distribution: FC4
Posts: 13

Original Poster
Rep: Reputation: 0
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.

any suggestions??


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
when creating a *.iso file, how to make the file size smaller? minm Linux - Newbie 8 12-26-2004 10:58 PM
Creating A new file rodbuh Programming 3 05-12-2004 09:33 AM
Creating a File Melissa22 Linux - Newbie 3 02-18-2004 02:48 PM
Problem creating tar.gz archive - File changed as we read it doctorwebbox Linux - General 1 02-04-2004 06:59 PM
Creating new file link1305 Linux - Newbie 5 11-26-2003 09:59 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration