Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why I must enter a password to login into samba?

Status
Not open for further replies.

tg2003

IS-IT--Management
Feb 6, 2003
270
IL
Hello,

My PC is connected to UNIX Solaris with samba 3.2. The problem is that it works only if I enter username and password. I have to enter them both after each reboot of the PC.
I know this login can be done automatically, but I can't find how. Please help.

My PC is Windows XP SP2 . No domain but WorkGroup.
My UNIX is Solaris 10 running over VMware.

Thanks!

Here's my smb.conf:
[global]
# replace "toltec" with your system's hostname

netbios name = solaris

# replace "METRAN" with the name of your workgroup

workgroup = WORKGROUP

security = user
encrypt passwords = yes

# Run a WINS server

wins support = yes

# The following three lines ensure that the Samba
# server will maintain the role of master browser.
# Make sure no other Samba server has its OS level
# set higher than it is here.

local master = yes
preferred master = yes
os level = 65

# Make home directories on the server available to users.

[homes]
comment = %u's Home Directory
browsable = no
read only = no
map archive = yes

[shared]
comment = lalala
path = /export/home/shared
hosts allow = laptop
valid users = tg
create mask = 0775
directory mask = 0775
guest ok = yes
map archive = no
oplocks = no
writeable = yes
browseable = yes
read only = no

 
This usually happens when your samba & windows usernames & passwords don't match. Add the username map option to the global section of smb.conf (correct the path as needed)

Code:
username map = /etc/samba/user.map

this file user.map will contain your samba & windows usernames in the format: smb=win. If your windows username has spaces, put quotation marks around it like:
Code:
tg="tg 2003"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top