LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   mount linux as samba client, own mountpoint (https://www.linuxquestions.org/questions/linux-networking-3/mount-linux-as-samba-client-own-mountpoint-243117/)

carlbrans 10-15-2004 03:20 PM

mount linux as samba client, own mountpoint
 
I am trying to have full rwx access from my SUSE9.1 Linux box to a shared directory, “test” residing in a Windows XP box, “Brans4,” on a MS LAN. The MS share settings are correct, I believe, giving shared access to appropriate directories with specific user ID/PW. This checks out from other MS machines.

After creating smby from my user account, so user owns it, I mount these files from root with

mount –t smbfs //Brans4/test /home/brans/smby

This works OK, and the data is in my ~/smby, and I have full rwx access as root, but only rx access as user. Actually, ownership of smby has passed to root. Furthermore, an attempt to chown or chmod from root results in a “permission denied” error message for both directory and files. This strikes me as very strange since root has full rwx access, and can even delete files but cannot chmod or chown on this directory or its files.

I want full ownership of /~/smby/* from the user, brans, account. The above procedure is not giving it to me, so ???

1) Am I missing some option setting in the mount command?
2) Is there a mount command I can run as user brans?



Thanks.
CB

acid_kewpie 10-15-2004 05:01 PM

try this
Code:

mount –t smbfs //Brans4/test /home/brans/smby -o uid=500,gid=500
replace 500 with the correct uid if you need to of course.


All times are GMT -5. The time now is 11:12 PM.