Has anyone running samba on their Linux box been able to mount a Windows
file system with the CIFS protocol?
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!
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
Archive powered by MHonArc 2.6.24.