Go Back   openSUSE Forums > Archives > SLS Archives > ARCHIVES - SuSE Linux > ARCHIVES - Network & Security > ARCHIVES - Security
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Security Want to know if you should really apply the latest kernel patch? Want to know how to configure your firewall? Discuss any Security related topics in here!

 
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 29-Sep-2006, 17:49
EverNoob
Guest
 
Posts: n/a
Default

Hi,
I'm unable to modify files on a mounted FAT partition, because their 'owned' by root. So I logged in as root, and tried to change it - only to find out that I have 'insufficient acces' to each of the files to modify their ownership... Please help
  #2 (permalink)  
Old 29-Sep-2006, 17:54
Jop
Guest
 
Posts: n/a
Default

That happens because FAT filesystems lack permission support.
You should mount it rw with correct fstab options and that should be it.
  #3 (permalink)  
Old 29-Sep-2006, 18:13
anomie
Guest
 
Posts: n/a
Default

This has been covered on the forums before. From the mount manpages:
Code:
Mount options for fat
...
****** uid=value and gid=value
**************Set the owner and group of all files.**(Default: the uid and gid
**************of the current process.)
...
My guess is you'll want to set the uid to your regular user. Also make sure it's mounted rw as was mentioned.
  #4 (permalink)  
Old 30-Sep-2006, 13:12
EverNoob
Guest
 
Posts: n/a
Default

Hey, thanks for quick response... :-)

I opened the partitioning tool from Yast to edit fstab options. Option value said...
Code:
users,gid=users,umask=0002,utf8=true
Should I leave out 'users' or just add uid=username before gid?
Tried either way, but the files are still owned by root :/

I also find it weird, that I'm able to move files to (only) a few particular folders on FAT, some files can be deleted (it's impossible to restore them from the trash though) while others can't.

How do I "mount it rw"?
  #5 (permalink)  
Old 30-Sep-2006, 13:43
Jop
Guest
 
Posts: n/a
Default

ad rw to options, like:

rw,users...
  #6 (permalink)  
Old 30-Sep-2006, 14:09
EverNoob
Guest
 
Posts: n/a
Default

Oh, god... Now entry in fstab looks as follows...
Code:
rw,users,uid=joy,gid=users,umask=0002,utf8=true 0 0
The 'rw' is not visible in Yast partitioning tool though :-|
Still 'no permission'. What the heck?
  #7 (permalink)  
Old 30-Sep-2006, 16:09
bozo
Guest
 
Posts: n/a
Default

Quote:
Oh, god... Now entry in fstab looks as follows...
Code:
rw,users,uid=joy,gid=users,umask=0002,utf8=true 0 0
The 'rw' is not visible in Yast partitioning tool though :-|
Still 'no permission'. What the heck?
[/b]
This is my line from my fstab:

Code:
/dev/hda1****/windows/C****vfat****users,gid=users,umask=0002,utf8=true 0 0
Try using it, changing the obvious to fit your box (ie. partition name). I hope you've made a backup of your original /etc/fstab just in case in all the changes things get *too* screwed up you can go back.

Edit: I almost forgot. I'm using 10.0, I don't know if that makes a difference in the fstab or not. You didn't say what version you're running.
  #8 (permalink)  
Old 30-Sep-2006, 17:28
Jop
Guest
 
Posts: n/a
Default

Oh, yes, and where are they mounted?
If it's on /windows/C, e.g., post:

ll /windows
  #9 (permalink)  
Old 01-Oct-2006, 06:53
GermanGirl
Guest
 
Posts: n/a
Default

Quote:
Oh, god... Now entry in fstab looks as follows...
Code:
rw,users,uid=joy,gid=users,umask=0002,utf8=true 0 0
The 'rw' is not visible in Yast partitioning tool though :-|
Still 'no permission'. What the heck?
[/b]
Test these options:
Code:
users,exec,gid=users,umask=000,iocharset=utf8 0 0
btw. vfat can't "utf8=true"
  #10 (permalink)  
Old 01-Oct-2006, 08:19
EverNoob
Guest
 
Posts: n/a
Default

Thank you GermanGirl! It works!
Could you give me a little explanation on what changes are done by exec and umask=000? And why 'vfat can't "utf8=true"?'

@ Jop: I did not quite cach it
 
Page 1 of 2 1 2

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2