LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-15-2005, 07:57 AM   #1
rimcrazy
Member
 
Registered: Dec 2003
Location: Overgaard, AZ
Distribution: Suse 10.0, FC5, RHEL4
Posts: 32

Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba: mount-folder in client gives only root permissions mvo Linux - Newbie 3 09-16-2005 11:39 AM
samba mount when not owner of mount point cotton213 Linux - General 1 08-04-2005 06:21 AM
Mount / Samba Permissions joshnya Linux - Newbie 8 04-08-2005 03:39 PM
How do I mount a samba directory with write permissions? xerogravity Linux - Newbie 7 12-05-2004 01:43 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration