[KLUG Members] Windows mounted file permissions

Scott Thurmond members@kalamazoolinux.org
Tue, 27 Nov 2001 10:00:22 -0500


I know almost nothing about the fstab file.  For example, I have a windows
box called win1 and a share called "docs".  I want to mount the share such
that the permissions are scott:scott.

By looking at the fstab file, it looks like I need to do something like:
//win1/docs /home/scott/win1 user=scott

Will it ask for a password or do I need to supply it in the fstab file?

-----Original Message-----
From: members-admin@kalamazoolinux.org
[mailto:members-admin@kalamazoolinux.org]On Behalf Of Bruce Smith
Sent: Tuesday, November 27, 2001 9:42 AM
To: members@kalamazoolinux.org
Subject: Re: [KLUG Members] Windows mounted file permissions


> I have mounted some windows shares from my linux box.  The problem is that
I
> have to mount them as root (at least I think I have to) and when I login
as
> a regular user and cd to the windows shares all the file permissions are
set
> to root:root.  How can I mount the shares such that either everyone can
use
> the files or set the permissions for a specific user?


If you add the "user" parameter to the options in /etc/fstab then any
user can mount and umount the filesystem.

And (the last time I tried, way back when I had a windows filesystem :)
when a normal user mounts it, the user & group are set to be the same
as the mounting user.

Otherwise you can specifiy options to lock the user and/or group to
a specific user in /etc/fstab.

--------------------------------------------
Bruce Smith                bruce@armintl.com
System Administrator / Network Administrator
Armstrong International, Inc.
Three Rivers, Michigan  49093  USA
http://www.armstrong-intl.com/
--------------------------------------------

_______________________________________________
Members mailing list
Members@kalamazoolinux.org