LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Samba share like windows (https://www.linuxquestions.org/questions/linux-software-2/samba-share-like-windows-289296/)

kd7edh 02-12-2005 09:30 AM

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



kd7edh 02-12-2005 10:18 AM

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:

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

thorax 02-12-2005 02:17 PM

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.

kd7edh 02-12-2005 04:32 PM

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.


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