You are not logged in.

#1 2003-09-07 21:48:27

Luis Q. R.
Member
Registered: 2003-02-20
Posts: 106

Accessing Win2k partition as user.

I can access my Win2k ntfs partition as root, but not as user. I've read the fstab man page, I've changed permissions but I still have no success. This is my fstab entry for Win2k:

/dev/discs/disc0/part1 /mnt/win2k ntfs ro,user,noauto 0 0

Please tell me what is wrong.

Offline

#2 2003-09-07 21:55:51

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: Accessing Win2k partition as user.

Luis Q. R. wrote:

I can access my Win2k ntfs partition as root, but not as user. I've read the fstab man page, I've changed permissions but I still have no success. This is my fstab entry for Win2k:

/dev/discs/disc0/part1 /mnt/win2k ntfs ro,user,noauto 0 0

Please tell me what is wrong.

if you say "user" than only the user that mounts it has access, so you must mount the partition as the user you want to have access ... if you want all users to have read-access, you must say "users"

/dev/discs/disc0/part1 /mnt/win2k ntfs ro,users,noauto 0 0

... and you must mount the partition as a user to have access to it


The impossible missions are the only ones which succeed.

Offline

#3 2003-09-08 07:19:22

Arielext
Member
From: Amersfoort, the Netherlands
Registered: 2002-08-12
Posts: 362
Website

Re: Accessing Win2k partition as user.

dp wrote:

... and you must mount the partition as a user to have access to it

mount -o username=[user] password=[password] /mnt/win2k

apt-get install arch

Offline

#4 2003-09-08 10:53:09

Luis Q. R.
Member
Registered: 2003-02-20
Posts: 106

Re: Accessing Win2k partition as user.

Still doesn't work.

Offline

#5 2003-09-08 11:25:20

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: Accessing Win2k partition as user.

who has access to the folder /mnt/win2k ? only root?


The impossible missions are the only ones which succeed.

Offline

#6 2003-09-08 11:57:58

Toth
Member
Registered: 2002-12-04
Posts: 82

Re: Accessing Win2k partition as user.

Change your fstab entry to:

/dev/discs/disc0/part1 /mnt/win2k ntfs gid=100,umask=0227,users,ro 0 0

This will allow both users and root to mount it as well as allowing users to access it. Remove "users" from the options list if you only want root to mount/unmount it (users will still be able to access it).

The important parts are the gid and umask options. The gid option will set the owner of the mount point (and all files under it in this case) to users (group id 100). The umask will set permissions on all files to 550 allowing the group owner (users) to have read and execute permissions on all files.

Offline

#7 2003-09-08 20:21:59

Luis Q. R.
Member
Registered: 2003-02-20
Posts: 106

Re: Accessing Win2k partition as user.

That did it. Thanks for the help.

Offline

Board footer

Powered by FluxBB