LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Permissions on a samba mount of a samba mount (https://www.linuxquestions.org/questions/linux-networking-3/permissions-on-a-samba-mount-of-a-samba-mount-313512/)

rimcrazy 04-15-2005 07:57 AM

Permissions on a samba mount of a samba mount
 
I have a laptop running winxp(host os) and suse9.1(vmware guest os) on my work laptop. I have a separate data drive partition on the win side for all of my work data. The laptop is set up to be an IIS client so when it is disconnect from the work network I can log in but it only recognizes a workgroup that is of the same name as the work windows network. I'm trying to set it up so that at home, I can use the data partition as a cvs repository.

Here is the fun part. Since 1) my home workgroup is different that the office workgroup and 2) my home desktop user id is different than my laptop user id and 3) I don't have permission on the laptop to add another account to the laptop, the simplest way to get to the data partition is using samba on my linux desktop to mount a samba share in vmware of my laptop linux os of the data drive. On my vmware os I mount the samba share of the data drive in the fstab with the following line:


//tokyo/tokyo_d /data smbfs uid=1000,gid=100,rw,credentials=/pathtocredentials 0 0

This works fine and as the userA (same user name as the winxp account) on the laptop I can read and write to this share in the vmware linux session. Samba is setup on the linux laptop to share this drive with full rw permissions. I have new file/directory permissions setup to 775. I have a different user name for my linux desktop but I have set up an account on the linux laptop os with the same name and assigned user r/w rights.

Now, I go in and on my desktop I mount the linux laptop shared drive with the following:

mount -t smbfs -o uid=1000,gid=100,rw,username=me //vmtokyo/data /tokyo

This mounts up and on the surface I can read and write to the drive. The cvs root directory is located in /data/cvsroot which mounts as /tokyo/cvsroot. When I try a cvs command I can checkout all day long. As soon as I try to checkin I get stalled in that either it says it cannot set a lock in the cvsroot directory or change the mode on a file it has attempted to checkin. I can perform checkin/checkout fine on the linux laptop side but cannot checkin at all from my desktop. I'm guessing this has to be some kind of subtle permission issue on trying to samba mount an existing samba mount. On thing ( I have not tried) but I'm guessing that I could set up a new user account on the desktop so the username exactly matches the primary username account on the laptop. For reasons outside this discussion, I'd like to not do that if possible but it may come to that. Any ideas/suggestions would be appreciated.


All times are GMT -5. The time now is 12:29 AM.