unclug AT lists.ibiblio.org
Subject: UNC Linux Users Group
List archive
Re: [unclug] Mounting a directory on a Windows server
- From: Brian Pike <bapike AT email.unc.edu>
- To: UNC Linux Users Group <unclug AT lists.ibiblio.org>
- Subject: Re: [unclug] Mounting a directory on a Windows server
- Date: Thu, 25 Jan 2007 17:13:42 -0500 (EST)
A guess: see the uid and gid arguments for smbmount:
http://us1.samba.org/samba/docs/man/manpages-3/smbmount.8.html
so you could do something like:
sudo mount -w -t smbfs -o uid=dan,gid=users,username=my_onyen //server...
and then your linux system should show all of the files and directories you mounted as being owned by the user 'dan' and the group 'users'. (According to the mount man page, the options given to mount for an smbfs filesystem are just passed to mount.smbfs=smbmount.)
I do something similar on my system for sometimes allowing my normal user read/write access to my windows partition.
-Brian Pike
On Thu, 25 Jan 2007, Dan Blanchette wrote:
Has anyone running samba on their Linux box been able to mount a Windows
file system with the CIFS protocal?
I've been able to do this on my Ubuntu Dapper box:
sudo mount -w -t smbfs -o username=my_onyen
//severname.domain.unc.edu/some_dir ~/some_dir
but root owns everything so I have to sudo cp or mv files in and
out...but I can edit a file in-place and save my changes!
Perhaps the Windows server needs to be configured diffrently to allow
the mounted directory to have my uid and gid own directories and files?
I've read that making a Kerberos authenticated connection would help.
Thanks,
Dan Blanchette
_______________________________________________
unclug mailing list
unclug AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/unclug
-
[unclug] Mounting a directory on a Windows server,
Dan Blanchette, 01/25/2007
- Re: [unclug] Mounting a directory on a Windows server, Brian Pike, 01/25/2007
- <Possible follow-up(s)>
- Re: [unclug] Mounting a directory on a Windows server, Dan Blanchette, 01/26/2007
Archive powered by MHonArc 2.6.24.