Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can Samba/Linux do this ?
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
paulr
n00b
n00b


Joined: 01 Jan 2003
Posts: 31
Location: Norfolk, England

PostPosted: Fri May 28, 2004 3:49 pm    Post subject: Can Samba/Linux do this ? Reply with quote

Hi.

What I want to do is have a Linux Fileserver. You click on the share on Windows, it pops up a login box, and then Windows attaches the appropriate directory to a drive (say E:), so I can set up multiple users on Windows (XP/98) without having the faff of umpteen Windows logins.

Basically pretty similar to how Linux itself works, where you log in as a user and this gives you a $HOME directory where people can store things.

I've been struggling with Samba (probably XP), but whilst I can log in happily with smbclient I can't get *!*!*"* XP to connect, even though the hardware is right.

Is there a way to get rid of the Windross so I can simply connect a directory (effectively) to Windows without going through the useless XP/98 "Networking".
Back to top
View user's profile Send private message
kezzla
Apprentice
Apprentice


Joined: 21 Aug 2003
Posts: 253
Location: Austin, TX

PostPosted: Fri May 28, 2004 4:40 pm    Post subject: Reply with quote

For WinXP:
Code:
Right click "My Computer" --> Map Network Drive -->
folder:  \\linuxserver\sharename

Just below this option you can choose connect using a different user name. You may choose this and enter the linux login you would like to access the share with.
Back to top
View user's profile Send private message
Pachacamac
Veteran
Veteran


Joined: 22 Nov 2003
Posts: 1264
Location: Paris - France

PostPosted: Fri May 28, 2004 4:42 pm    Post subject: Reply with quote

# Paramètre de connection utilisateur :
logon drive = P:
logon home = \\%L\%U\profile
logon path = \\%L\%U\profile

Each user will have a drive mounted during the boott called P:
Back to top
View user's profile Send private message
beowulf25
n00b
n00b


Joined: 26 Mar 2003
Posts: 15

PostPosted: Fri May 28, 2004 4:51 pm    Post subject: Reply with quote

Doesn't the [homes] share in smb.conf automatically do this? It's been a while since I used it, and things may have changed in the intervening year or two, but I seem to remember a users ~ showing up as a share on the samba box in Network Neighborhood. You can then map a drive to \\LinuxServer\username and set it to reconnect at login.

There is also a way to map the windows username to the linux account... if they are different - /etc/samba/smbusers.

Like I said, I don't worry about usernames on my home network, so I have all windows machines come in as (windows username) guest - which is mapped to (linux account) nobody - with permission to a public share for file sharing.

edit:

Also - doesn't WinXP try to encrypt the passwords automatically? You have to tell samba to use the encryption - may only apply to Domains though.
Back to top
View user's profile Send private message
Pachacamac
Veteran
Veteran


Joined: 22 Nov 2003
Posts: 1264
Location: Paris - France

PostPosted: Fri May 28, 2004 5:05 pm    Post subject: Reply with quote

With logon home and logon path (home / path are different if you use NT, 2000 or others) you don't need to use windows to map a drive.

It is two ways but they go in the same point.
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