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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

samba in linux redhat 7.1

Status
Not open for further replies.

ady2k

Vendor
Jan 28, 2002
463
ID
I already configured samba.
And I used encrypted password = yes and security = user from smb.conf
What I already done step by step :
# cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd
I also converted root user from passwd to smbpasswd.
And I still can not login to the share folder.
Please advice.
Thank 's
 
Hi,

As /etc/passwd doesn't contain any passwords (assuming shadow passwords are in use which they are unless you disabled them), you have to use 'smbpasswd' afterwards to set the user passwords. All the 'mksmbpasswd.sh' script does is copy the userids . So, after the :

# cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd

you need to do ...

# chmod 600 /etc/samba/smbpasswd

then..

# /usr/bin/smbpasswd userid1
# /usr/bin/smbpasswd userid2

etc.. (for each user)

You should also point to the password file in smb.conf with :

smb passwd file = /etc/samba/smbpasswd

After that, restart the samba server and try again :

# /etc/rc.d/init.d/smb restart

You may also need to configure your 'lokkit' firewall to allow the relevant TCP ports (137 & 139) through . You administer lokkit as root with :

# /usr/sbin/lokkit

(For simplicity it may be easier to set your lan interface as 'trusted')

Restart the network...

# /etc/rc.d/init.d/network restart


Hope this helps
 
I already followed your step to configure samba.
I also configured firewall 'lokkit' to no firewall.
And I still can't login to share folder using user level.
The error message : incorrect password
I already set blank password/with password for root.
# smbpasswd root
Please advice
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top