LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Folder permissions (https://www.linuxquestions.org/questions/linux-newbie-8/folder-permissions-22632/)

fatboyjim 06-05-2002 03:46 AM

Folder permissions
 
This is my first post in the forum, I'm testing you now to see how quickly you can reply :)

I have installed the new Mandrake 8.2 and have logged in as root to mount my windows partition to linux

My main user "jim" however can see this folder (/mnt/windows) but cannot see the files. Root cannot change the file permissions either (Could not set permissions for /mnt/windows is the error.) What do I need to set and what am I doing wrong?


Another thing, How do i get SuperUser access from another account? (in XTerm for example)


Thanks very much,

Jim

acid_kewpie 06-05-2002 03:54 AM

sorry... 8 minutes. bit slow for me....

root can't change permissions on a vfat file system as the permissions don't exist in the first place. you need to set it in /etc/fstab which will create pretend rights for the entire drive. e.g.

/dev/hdb1 /mnt/windows vfat defaults,umask=000

it's the umask bit you'll end to edit.

and SuperUser? you mean root yeah? well just use "su" in a terminal

fatboyjim 06-05-2002 04:03 AM

Thank you, su is what I meant (I thought that's what su stood for)

so what do i change the umask to so that "jim" can see and edit the files and folders?

Thanks again,

fatboyjim 06-05-2002 04:06 AM

And another thing... :)

The link at the bottom of your sig (http://www.ibiblio.org/pub/Linux/doc...nux-HOWTO.html) doesn't work (404)

acid_kewpie 06-05-2002 04:08 AM

with a umask of 000 the rights (a la ls) will read rwxrwxrwx so EVERYONE can edit the files. if you specifically wish to restrict it to one group then set the gid= flag to the group number you want, presumably you could set the uid= to the same value in stead, as i presume you are the only person in your group.

yeah.. that link 404d a month back.. can't be arsed to remove it.

fatboyjim 06-05-2002 04:19 AM

:) Thanks a lot

Jim

fatboyjim 06-05-2002 05:59 AM

OK, it kinda worked

I added /dev/hda1 /mnt/windows ntfs defaults,umask=000

to the etc/fstab file as root

Now when I login as root it's all done for me, and it all works

But when I log in as jim still no joy

Any ideas?

Thanks

MasterC 06-05-2002 07:01 AM

Are you running NTFS or FAT on your Windows? If you don't know, you should... well actually if you can acess it as root, I am guessing it's NTFS. First you probably don't want to enable "write" access as this is known to destroy your drive unless you do it the "correct" way. I don't know the correct way, so I just leave it as "read-only" by adding this to my fstab:
/dev/hda1 /mnt/windows ntfs auto,user,ro,nouser,async 0 0

I don't know if I need ALL of that, but it mounts it just fine for all my users. I think maybe the 'nouser' part makes it available to anyone?

vfs 06-05-2002 07:03 AM

Do a

chmod 1777 /mnt/windows

HTH

fatboyjim 06-05-2002 08:25 AM

NTFS, thanks for the help

I'll reply when and if it works :)

fatboyjim 06-05-2002 10:55 AM

Don't know what I did but it's finally working for all users

Thanks a lot for all of your help

vfs 06-05-2002 01:50 PM

Surely is the 'chmod 1777 /mnt/windows' :D :D

fatboyjim 06-05-2002 02:20 PM

I didn't actually need to do that :D

It was already working when I was about to type it in


All times are GMT -5. The time now is 03:48 PM.