LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-05-2006, 07:39 AM   #1
Hitboxx
Senior Member
 
Registered: Mar 2006
Location: India
Distribution: Fedora
Posts: 1,562
Blog Entries: 3

Rep: Reputation: 68
Unable 2 write 2 vfat partitions as user in FC5


Hello guys,

U can c my fstab file here, FC5 doesnt automount vfat partitions by default so i added the lines below but im unable 2 write(copy folder,files from /home etc) 2 those partitions even though rw is added. But if im root alls fine. How do i do it as user??

Any suggestions.. ?? Thanks

LABEL=/ / ext3 defaults 1 1
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
LABEL=/home /home ext3 defaults 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
LABEL=/tmp /tmp ext3 defaults 1 2
LABEL=SWAP-sdb10 swap swap defaults 0 0
/dev/sda1 /media/XP_System vfat auto,quiet,exec,rw 0 0
/dev/sdb6 /media/MAX_Backup vfat auto,quiet,exec,rw 0 0
/dev/sdb1 /media/CATIA vfat auto,quiet,exec,rw 0 0
/dev/sdb5 /media/APPS vfat auto,quiet,exec,rw 0 0
/dev/sdb7 /media/DOWNLOADS vfat auto,quiet,exec,rw 0 0
/dev/sda6 /media/XP_Samples vfat auto,quiet,exec,rw 0 0
/dev/sda8 /media/XP_Backup vfat auto,quiet,exec,rw 0 0
/dev/sda7 /media/XP_Games vfat auto,quiet,exec,rw 0 0
/dev/sda5 /media/XP_Software vfat auto,quiet,exec,rw 0 0
/dev/sda9 /media/XP_Media vfat auto,quiet,exec,rw 0 0

OH YES.. 1 more thing during mounting at startup and unmounting while shutdown it gives an error msg like
" Warning: no final new line at the end in etc/fstab " ( i edited fstab in kwrite)

What do i make of it?

PS : Sorry guys i know ther r a lot of post out ther about the same but its the 1st time ive edited a system file like fstab. I wanted 2 show it 2 u guys so i didnt do any wrong. Plz bear with me im only learning

Last edited by Hitboxx; 04-05-2006 at 08:29 AM.
 
Old 04-05-2006, 08:34 AM   #2
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
What are the permissions of the directories in /media/* ? If those directories are owned by root, but only have permissions of rwxr-xr-x (755) then you as a normal user won't be able to touch them.
 
Old 04-05-2006, 09:18 AM   #3
Hitboxx
Senior Member
 
Registered: Mar 2006
Location: India
Distribution: Fedora
Posts: 1,562

Original Poster
Blog Entries: 3

Rep: Reputation: 68
These are the permissions

drwxr-xr-x 8 root root 8192 Jan 1 1970 APPS
drwxr-xr-x 8 root root 8192 Jan 1 1970 CATIA
drwxr-xr-x 3 shrikant root 2048 Nov 21 2003 disk
drwxr-xr-x 11 root root 16384 Jan 1 1970 DOWNLOADS
drwxr-xr-x 22 root root 16384 Jan 1 1970 MAX_Backup
drwxr-xr-x 28 root root 8192 Jan 1 1970 XP_Backup
drwxr-xr-x 17 root root 8192 Jan 1 1970 XP_Games
drwxr-xr-x 15 root root 8192 Jan 1 1970 XP_Media
drwxrwxr-x 2 root root 4096 Apr 2 17:35 XP_Misc
drwxrwxr-x 2 root root 4096 Apr 2 17:34 XP_Primary
drwxr-xr-x 21 root root 4096 Jan 1 1970 XP_Samples
drwxr-xr-x 67 root root 8192 Jan 1 1970 XP_Software
drwxr-xr-x 10 root root 4096 Jan 1 1970 XP_System

but if i try to set permissions as root it gives an error msg
 
Old 04-05-2006, 09:24 AM   #4
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
Try changing this
/dev/sda1 /media/XP_System vfat auto,quiet,exec,rw 0 0
to this
/dev/sda1 /media/XP_System vfat auto,quiet,noexec,rw,umask=0000 0 0
The "umask" option gives all users read/write access. I also changed "exec" to "noexec" - unless you want to run Linux binaries on your FAT partitions you won't need this.

The warning you are getting means exactly what it says - you didn't put a newline at the end of the file. This doesn't really matter as far as I know, the error is mainly there for historical reasons, but you can fix it be going to the end of your fstab file, hitting <Enter> and saving.

Last edited by Gethyn; 04-05-2006 at 09:25 AM.
 
Old 04-05-2006, 12:52 PM   #5
Hitboxx
Senior Member
 
Registered: Mar 2006
Location: India
Distribution: Fedora
Posts: 1,562

Original Poster
Blog Entries: 3

Rep: Reputation: 68
Well well what do ya know its working guys thank u so much i appreciate it. umask did the wonders

-BUT
The ntfs partitions are locked out from the user
Its is mounted automatically though. I can see its contents but cant write and execute.
Tried to give permissions from root but no use.
Also, KDE gives an error msg while setting permissions but Gnome works fine. why is that ??

Heres my fstab details

LABEL=/ / ext3 defaults 1 1
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
LABEL=/home /home ext3 defaults 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
LABEL=/tmp /tmp ext3 defaults 1 2
LABEL=SWAP-sdb10 swap swap defaults 0 0
/dev/sda1 /media/XP_System vfat auto,quiet,noexec,rw,umask=0000 0 0
/dev/sdb6 /media/MAX_Backup vfat auto,quiet,noexec,rw,umask=0000 0 0
/dev/sdb1 /media/CATIA vfat auto,quiet,noexec,rw,umask=0000 0 0
/dev/sdb5 /media/APPS vfat auto,quiet,noexec,rw,umask=0000 0 0
/dev/sdb7 /media/DOWNLOADS vfat auto,quiet,noexec,rw,umask=0000 0 0
/dev/sda6 /media/XP_Samples vfat auto,quiet,noexec,rw,umask=0000 0 0
/dev/sda8 /media/XP_Backup vfat auto,quiet,noexec,rw,umask=0000 0 0
/dev/sda7 /media/XP_Games vfat auto,quiet,noexec,rw,umask=0000 0 0
/dev/sda5 /media/XP_Software vfat auto,quiet,noexec,rw,umask=0000 0 0
/dev/sda9 /media/XP_Media vfat auto,quiet,noexec,rw,umask=0000 0 0
/dev/sda3 /media/XP_Primary ntfs auto,quiet,noexec,rw,umask=0000 0 0
/dev/sda10 /media/XP_Misc ntfs auto,quiet,noexec,rw,umask=0000 0 0

AND heres the permissions

drwxrwxrwx 8 root root 8192 Jan 1 1970 APPS
drwxrwxrwx 8 root root 8192 Jan 1 1970 CATIA
drwxrwxrwx 11 root root 16384 Jan 1 1970 DOWNLOADS
drwxrwxrwx 22 root root 16384 Jan 1 1970 MAX_Backup
drwxrwxrwx 28 root root 8192 Jan 1 1970 XP_Backup
drwxrwxrwx 17 root root 8192 Jan 1 1970 XP_Games
drwxrwxrwx 15 root root 8192 Jan 1 1970 XP_Media
drwxrwxrwx 1 root root 4096 Mar 31 17:42 XP_Misc
drwxrwxrwx 1 root root 4096 Mar 31 17:42 XP_Primary
drwxrwxrwx 21 root root 4096 Jan 1 1970 XP_Samples
drwxrwxrwx 67 root root 8192 Jan 1 1970 XP_Software
drwxrwxrwx 10 root root 4096 Jan 1 1970 XP_System

AS u can see all permissions are active for ntfs but only for the top most folder. Its contents are untouchable though readable. HELP

Thanks
 
Old 04-05-2006, 01:12 PM   #6
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
Good to hear. I will keep this in mind the next time I see it pop up.

As for the NTFS stuff, the problem there is that (typically) the NTFS driver in linux is set to read only in the first place, because it is considered dangerous to write to an NTFS partition from linux. This is by design at the moment, and I really don't recommend modifying it so that you can write to the NTFS partition.
 
Old 04-06-2006, 06:27 AM   #7
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
It's not terribly important, but it would be more logical to change the options on your ntfs partition to auto,quiet,noexec,ro,umask=0222 as it is read-only. It is possible to write to ntfs, there is a thread on it in the Fedora forum here at the moment, but as Wells says it's not recommended.
 
  


Reply



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
trouble setting Read/Write permissions on vfat partitions mboxbg Linux - Newbie 1 02-17-2006 08:00 AM
unable to write to vfat partition as non-root aducarrab Linux - Newbie 4 01-29-2005 07:08 PM
Can't write to vfat partition as user sigma957 Slackware 6 07-29-2004 08:58 AM
Can't write to vfat and ntfs partitions linuxfond Linux - Newbie 7 11-12-2003 04:54 PM
unable to write file to vfat partition from Linux techsarge Linux - Software 5 04-25-2003 04:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 09:05 PM.

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