View previous topic :: View next topic |
Author |
Message |
paulr n00b
Joined: 01 Jan 2003 Posts: 31 Location: Norfolk, England
|
Posted: Fri May 28, 2004 3:49 pm Post subject: Can Samba/Linux do this ? |
|
|
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/9 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 |
|
|
kezzla Apprentice
Joined: 21 Aug 2003 Posts: 253 Location: Austin, TX
|
Posted: Fri May 28, 2004 4:40 pm Post subject: |
|
|
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 |
|
|
Pachacamac Veteran
Joined: 22 Nov 2003 Posts: 1264 Location: Paris - France
|
Posted: Fri May 28, 2004 4:42 pm Post subject: |
|
|
# 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 |
|
|
beowulf25 n00b
Joined: 26 Mar 2003 Posts: 15
|
Posted: Fri May 28, 2004 4:51 pm Post subject: |
|
|
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 |
|
|
Pachacamac Veteran
Joined: 22 Nov 2003 Posts: 1264 Location: Paris - France
|
Posted: Fri May 28, 2004 5:05 pm Post subject: |
|
|
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 |
|
|
|