On Tue, 30 Nov 2004 00:52:15 -0700, Gary Hutton <[EMAIL PROTECTED]> wrote: > Help, > > I have a mounting question. > > I am using Mandrake 10 linux. > I have mounted a windows hard drive computer using Samba. > this has added this line in my /etc/fstab: > > //abraham/Joseph /home/gary/Documents/Joseph smbfs > user,credentials=/etc/samba/auth.abraham.gary 0 0 > > Then I use samba to mount or just reboot. This gives me a directory > called Joseph in my Documents directory. I can read the files. The > problem is the ower is root with permissions that look like this: > > -rwxr--r-- 1 root root 2685 Nov 21 22:53 Burgess.htm* > > When I try to use the chmod command on the Joseph directory, nothing is > changed. The owner is still root. Here is the command I used: > > chmod o=rwx Burgess.htm > chmod 777 Burgess.htm > > Apparently one cannot change rights on a mounted shared file from a > windows box. ???
When you mount a smb share to linux it creates a mapping between user names, so in your case root(linux)=gary(windows). This means that root has access to change stuff and nobody else does. The problem here is that you mounted it as root (by rebooting). Your fstab should probably have the noauto option in it (user,noauto,credentials...). Then you can mount it as yourself and (unless mandrake messed things up for you) it will be owned by you. > My question is how do I link as a regular user? or > How do I change rights to files on a mounted directory? or > How can I read and write to this directory? You might be better off using Nautilus (if you use GNOME) or Konqueror (if you use KDE) to access your files. Both of these use smb://host/share URLs and will prompt you for your name and password and allow you to save the credentials if you want. If this doesn't help please ask again and give better details. -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/
