View previous topic :: View next topic |
Author |
Message |
Becks Tux's lil' helper
Joined: 06 Dec 2002 Posts: 90
|
Posted: Wed May 18, 2005 7:57 am Post subject: samba share disappears |
|
|
Hi, i have a strange problem here with samba (3.0.13)
When i try to mount a share on a machine running Windows XP, the complete tree with the mount disappears after mounting.
Example:
Code: |
/etc/fstab:
\\xpmachine\share /mnt/xpdrive smbfs noauto,username=myuser,user,exec,umask=000 0 0
|
ls -la /mnt/ shows a directory named xpdrive. When i mount the drive with "mount /mnt/xpdrive" and enter the correct password, i get no error message and mount shows that the share is really connected:
> mount
//xpmachine/share on /mnt/xpdrive type smbfs (0)
If i enter ls -la /mnt, there is no directory, it's just not displayed. I have to run umount //xpmachine/share as root to disconnect the share, and after this, the directory is back again...
Anyone knows what happens here and how i can solve this problem?
Alex |
|
Back to top |
|
|
fangorn Veteran
Joined: 31 Jul 2004 Posts: 1886
|
Posted: Wed May 18, 2005 8:34 am Post subject: |
|
|
Does your User have access permissions on the XP Share?
Does
Code: |
smbmount //xpserver/share /mnt/sharedxp -o username=myuser,uid=<youruid>,gid=<yourgid>
|
make any difference?
If yes you should reconsider your fstab options |
|
Back to top |
|
|
Becks Tux's lil' helper
Joined: 06 Dec 2002 Posts: 90
|
Posted: Wed May 18, 2005 11:08 am Post subject: |
|
|
After adding uid=<myuid> and gid=<mygid> the directory stays there when i mount the share. Now i get a "permission denied" when i try change into that directory. Strange is: i have WinXP running here on vmware and when i do exactly the same (mounting the share using the same user/pwd combination), i am able to brwose it after mounting.
Alex |
|
Back to top |
|
|
fangorn Veteran
Joined: 31 Jul 2004 Posts: 1886
|
Posted: Thu May 19, 2005 6:09 am Post subject: |
|
|
I found WinXP has a strange behaviour in case of SMB (or SAMBA) shares, if you have any account without password in the System. Also Windows is known for problems when connecting with a user that has no Administrator rights. Check the Share on the XP and Make it explicitely for the user you wanna connect for a try.
On Linux to change into a directory you have the executable flag. So try adding umask=002 or something like that to your mount command.
BTW
Does the Linux user have exact the same username and password as the User in WinXP for whom the Share is exported? You should get around that with the uid= and gid= mount options, but who knows? |
|
Back to top |
|
|
Becks Tux's lil' helper
Joined: 06 Dec 2002 Posts: 90
|
Posted: Sat May 21, 2005 12:51 pm Post subject: |
|
|
1) tried to connect with a admin account and normal account - on both machines.
2) tried umask=000 and 002
nothing helped so far. Xp sucks in my eyes
Alex |
|
Back to top |
|
|
fangorn Veteran
Joined: 31 Jul 2004 Posts: 1886
|
Posted: Sat May 21, 2005 6:21 pm Post subject: |
|
|
Not dispute with me here (and not just because of the fluffy bunny look and feel)
I still can't understand how they got the NT Taskmanager so crippled in 2k, but then I realized, it can get much worse
I am so happy, that windows networks are not a part of my life any more (yeah another one that got another job ) |
|
Back to top |
|
|
|