LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-13-2005, 09:24 AM   #1
Raggit
Member
 
Registered: Oct 2003
Location: N.C USA
Distribution: Fedora Core 4
Posts: 65

Rep: Reputation: 15
Samba Shares & Users


Hello

[users]
I have a samba server running. Once I log on to the samba server using Username & Pass is it possible to actually log out to where I could use another username and pass to log in to see that users home directory?? The reason i ask is i have a lab setup in my house and I have several test users on the linux machine(FC3). I signed on using one user account and I am able to see his/her home directory and share info between my windows boxes and that home directory. But lets say I want to log out and sign into the samba server using a different username how would one go about that?

[Shares]
I have the red hat linux bible here and have been trying to figure out how to create a share using the terminal. Lets say I have a directory called "/sharethis" how would i go about sharing that directory with the windows boxes using the terminal?
 
Old 02-13-2005, 11:06 AM   #2
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
[users]
windows has a major limitation here -- it does not want to allow you to log on as multiple users to the same resource. since you are only testing, i assume you won't be telling windows to 'remember password' so if you're lucky, when you close the window it'll forget the credentials, and you'll have no problems.

[shares]
path = /sharethis
comment = Im a share
valid users = shareuser
write list = shareuser
read only = no
browseable = no


that help?
 
Old 02-13-2005, 02:24 PM   #3
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 114Reputation: 114
You didn't specify your client. Are you asking if you can log out from a windows box, or from a linux box?

To do it from Windows, select your network drive (the smb share) and disconnect. Windows should then ask for username and password the next time you connect. If windows won't ask for credentials, then disconnect and log out of windows, then log back in. That should do it.

If you are doing it from a linux client all you have to do is issue an smbumount <mountpoint> then issue an smbmount with the credentials you want to test.
 
Old 02-13-2005, 08:04 PM   #4
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
jiml...

i don't work with samba/windows (or windows network shares in general) all that often, but my question regarding your comments is: would windows actually map the share without you directing it to?

I know with windows XP places you visit (on the network) should show up in 'my network places'... but to 'disconnect' a drive, wouldn't it have had to have been mapped by the user?
 
Old 02-14-2005, 04:36 AM   #5
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 114Reputation: 114
Quote:
i don't work with samba/windows (or windows network shares in general) all that often, but my question regarding your comments is: would windows actually map the share without you directing it to?

I know with windows XP places you visit (on the network) should show up in 'my network places'... but to 'disconnect' a drive, wouldn't it have had to have been mapped by the user?
You would have to tell windows to map the share, and if you check the box "reconnect at each login" it would remap it each startup. To disconnect, it first would have had to be connected (mapped).

Ummm....I think I know where you are going. Yes, it is true that XP keeps all this "my network places" info without mapping the drive. I don't know if it stores the credentials to access those locations are not. Good point.

Last edited by jiml8; 02-14-2005 at 04:38 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Users & Groups Privileges Bilal84 Linux - Networking 3 10-11-2005 08:31 AM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 05:28 PM
samba: hide shares from some users v3rb0 Linux - Software 4 08-10-2003 01:12 AM
Users, window managers, bootloaders and samba shares (oh my!) Korff Linux - General 1 06-13-2003 11:00 PM
FTP Users and Shares Thermos Linux - Newbie 8 05-22-2003 03:19 PM


All times are GMT -5. The time now is 02:33 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration