LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-12-2005, 09:30 AM   #1
kd7edh
LQ Newbie
 
Registered: May 2004
Posts: 9

Rep: Reputation: 0
Samba share like windows


I am trying to get my Samba server to share out shares just like a Windows machine would. I have it working quite nicely except for one problem.

I have 3 windows XP Pro machines and 1 samba server. When one of the windows machines connects to the samba server \\linux I see my shares and can access all of them that are available for guest access.

The problem is when I try to connect to a non guest share such as the "files" share. I connect to the "files" share via start -> run -> "\\linux\files". I get a window that says "Connecting to linux". There is a box for me to type in my password, but the box that says User Name is grayed out with the contents of "linux\Guest". I don't want to use guest, I need to use the kenneth account.

I was able to manually force a connection to the share, using the user name kenneth, by using "net use \\linux\files /user:kenneth"

C:\>net use \\linux\files /user:kenneth
The command completed successfully.

Two things concern me here. First it didn't ask for a password, but I am still able to connect to the share. Second I don't want to be having to use net use every time I create a share with a different user.

What can I do to make it so that it asks for a specific user name?





# Samba config file created using SWAT
# from 192.168.0.116 (192.168.0.116)
# Date: 2005/02/11 12:42:48

# Global parameters
[global]
server string =
security = SHARE
guest account = samba

[files]
path = /files
valid users = kenneth
force user = kenneth
read only = No
create mask = 0600
directory mask = 0700
only user = Yes
browseable = No

[share]
path = /files/Share
guest ok = Yes



Last edited by kd7edh; 02-12-2005 at 09:32 AM.
 
Old 02-12-2005, 10:18 AM   #2
kd7edh
LQ Newbie
 
Registered: May 2004
Posts: 9

Original Poster
Rep: Reputation: 0
A quick update.

The reason it wasn't asking for a password is because the current windows user has the same password as the "kenneth" samba user. Even though they are different user names, apperently it tried to use the password anyways.

I am still having the issue with it only requesting password for the Guest account and not for the kenneth account.

------------------------

C:\Documents and Settings\kd7edh>net use \\linux\files
The password is invalid for \\linux\files.

To connect linux\Guest to linux, press ENTER, or type a new user name:

------------------------
 
Old 02-12-2005, 02:17 PM   #3
thorax
Member
 
Registered: Jun 2004
Location: Germany
Posts: 73

Rep: Reputation: 15
Have you tried to set "security = user" ? This solved the problem for me, the user field in the login dialog is no longer grayed out.
 
Old 02-12-2005, 04:32 PM   #4
kd7edh
LQ Newbie
 
Registered: May 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Although setting "security=user" does make it so I can specify a user, it also disables the general guest browsing as well. If I try to browse to "\\linux" it asks for a password, same with if I try to access the guest share "\\linux\share". So although this fixes one problem, it creates another.
 
  


Reply



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
windows clients cannot see samba share marcbachman Red Hat 2 12-10-2008 06:06 AM
mounting a windows (samba) share? alsjordan Linux - Newbie 3 08-06-2005 08:22 AM
Suse 9.3 Samba Won't Share With Windows XP Desert Linux - Software 2 07-25-2005 12:02 AM
samba: linux mounted share = choppy playback, windows mounted share = smooth kleptophobiac Linux - Software 2 04-10-2005 08:23 AM
Cannot mount samba share from windows XP Astro Linux - Software 2 12-18-2004 11:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:26 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration