Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
samba share disappears
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Becks
Tux's lil' helper
Tux's lil' helper


Joined: 06 Dec 2002
Posts: 90

PostPosted: Wed May 18, 2005 7:57 am    Post subject: samba share disappears Reply with quote

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
View user's profile Send private message
fangorn
Veteran
Veteran


Joined: 31 Jul 2004
Posts: 1886

PostPosted: Wed May 18, 2005 8:34 am    Post subject: Reply with quote

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
View user's profile Send private message
Becks
Tux's lil' helper
Tux's lil' helper


Joined: 06 Dec 2002
Posts: 90

PostPosted: Wed May 18, 2005 11:08 am    Post subject: Reply with quote

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
View user's profile Send private message
fangorn
Veteran
Veteran


Joined: 31 Jul 2004
Posts: 1886

PostPosted: Thu May 19, 2005 6:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Becks
Tux's lil' helper
Tux's lil' helper


Joined: 06 Dec 2002
Posts: 90

PostPosted: Sat May 21, 2005 12:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
fangorn
Veteran
Veteran


Joined: 31 Jul 2004
Posts: 1886

PostPosted: Sat May 21, 2005 6:21 pm    Post subject: Reply with quote

Not dispute with me here :twisted: (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 8O

I am so happy, that windows networks are not a part of my life any more (yeah another one that got another job :twisted: )
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum