Unix Technical Forum

Permissions on WinDoze partition

This is a discussion on Permissions on WinDoze partition within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi all! I wanted to give all users read access to my Windoze 98 partition (Yes, I still need ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 09:12 AM
MadMaxJR
 
Posts: n/a
Default Permissions on WinDoze partition

Hi all!

I wanted to give all users read access to my Windoze 98 partition (Yes, I
still need to have that damn W... installed (*sigh*) ), but I ran into
very strange problem. The permissions on the /mnt/windows are as default
rwxr--r--, so only root could change to that directory & read its
contents. I tried to allow all users the same, but see what happened:

8<---

<root> /mnt# ls -l | grep windows
drwxr--r-- 18 root root 4096 Jan 1 1970 windows
<root> /mnt# chmod -v a+x windows
mode of `windows' changed to 0755 (rwxr-xr-x)
<root> /mnt# ls -l | grep windows
drwxr--r-- 18 root root 4096 Jan 1 1970 windows
<root> /mnt#

8<---

What mechanism keeps me from changing the permissions of /mnt/windows (as
root!), or changes it back when I turn my back? And more importantly, HOW
CAN I DISABLE IT...! Very strange

By the way, I'm using Slackware 9.1

JR

--
| me@home ~$whoami ^ ^ | 'Mörköjä ja poliiseja on olemassa' |
| Jouni 'Mad Max' Rinne ('x') | Tove Jansson, 'Vaarallinen juhannus' |
| me@home ~$man woman C " " | --------[ph34r t3h p3Ngu1n]--------- |
| Segmentation fault (core dumped) | madmaxjr at kolumbus dot fi |

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 09:12 AM
Vigil
 
Posts: n/a
Default Re: Permissions on WinDoze partition

On Sat, 06 Mar 2004 13:54:04 +0200, MadMaxJR wrote:

> I wanted to give all users read access to my Windoze 98 partition


Try mounting it with 'user' and 'umask=077', eg. in fstab:

/dev/hdb1 /win vfat rw,user,umask=077,conv=a 0 0

--

..

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 09:12 AM
MikeyD
 
Posts: n/a
Default Re: Permissions on WinDoze partition

> What mechanism keeps me from changing the permissions of /mnt/windows (as
> root!), or changes it back when I turn my back? And more importantly, HOW
> CAN I DISABLE IT...! Very strange


The fat filesystem has no concept of permissions. You need to set a umask
for the whole filesystem when mounting or in fstab. I have in my fstab
somehting like nouid,nogid,noexec,rw,users,umask=000.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 09:12 AM
MadMaxJR
 
Posts: n/a
Default Re: Permissions on WinDoze partition

On Sat, 06 Mar 2004 12:52:57 +0000, MikeyD wrote:

>> What mechanism keeps me from changing the permissions of /mnt/windows (as
>> root!), or changes it back when I turn my back? And more importantly, HOW
>> CAN I DISABLE IT...! Very strange

>
> The fat filesystem has no concept of permissions. You need to set a umask
> for the whole filesystem when mounting or in fstab. I have in my fstab
> somehting like nouid,nogid,noexec,rw,users,umask=000.


Thanks for the help! I replaced the 'defaults' in fstab with
'rw,umask=022', that did the trick... I KNEW that fat filesystem haven't
got any permissions, I just thought that the directory /mnt/windows still
belonged to the *nix filesystem, and all after that to the *doze.
Obviously I was wrong... Thanks again

JR

--
| me@home ~$whoami ^ ^ | 'Mörköjä ja poliiseja on olemassa' |
| Jouni 'Mad Max' Rinne ('x') | Tove Jansson, 'Vaarallinen juhannus' |
| me@home ~$man woman C " " | --------[ph34r t3h p3Ngu1n]--------- |
| Segmentation fault (core dumped) | madmaxjr at kolumbus dot fi |

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 09:13 AM
Ori Bernstein
 
Posts: n/a
Default Re: Permissions on WinDoze partition

On Sat, 06 Mar 2004 13:54:04 +0200, MadMaxJR wrote:

> Hi all!
>
> What mechanism keeps me from changing the permissions of /mnt/windows (as
> root!), or changes it back when I turn my back? And more importantly, HOW
> CAN I DISABLE IT...! Very strange



I'll give you the same advice as I got when I asked this question:
man mount (look at the fat filesystem options).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 09:16 AM
chino
 
Posts: n/a
Default Re: Permissions on WinDoze partition

> What mechanism keeps me from changing the permissions of /mnt/windows (as
> root!), or changes it back when I turn my back? And more importantly, HOW
> CAN I DISABLE IT...! Very strange


Try: mount -t vfat -o uid=username /dev/hda1 /mnt/windows
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:26 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com