Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Could you be more specific on how you configured the samba share? Have you created the samba paasword file with the command 'mksmbpasswd.sh'? Moreover the path to smbpasswd is '/etc/samba/smbpasswd' and not '/etc/smbpasswd'. Also you have to create a password for the every samba user using the command 'smbpasswd'. Another point is that you don't use a fully qualified domain name as a netbios name, its just a short name and not divided by periods. If you could please specify the steps you did on configuring the smb daemon, it will be easy for us to locate the error.
try creating a new user called something like smbuser and add them to the allowed users in your smb.conf, then set the password as you tried before. I could be wrong but i dont think you want to be logging in as or attemping to set the password for "root"
After configuring the smb.conf file (you could get back the file if you forcefully install the package), add the local password database to the smbpasswd database using the command 'cat /etc/passwd|mksmbpasswd.sh>/etc/samba/smbpasswd'. this creates the samba password file. After that you could add users by using the command 'smbpasswd username'. Now restart the service and you can use samba as usual. If you have any problems, please reply. Remember that samba works only by creating a user database using the above command.
I think i would detail out the steps on configuring samba here. First of all, install the packages :==
3) Samba-client (For client side)
4) Samba-swat (For a GUI cofig: utility)
After installing, configure your smb.conf file, according to your specifications. To add users to authenticate and use samba shares, you have to add the users from the local passwd file. For the same, use the following command:== 'cat /etc/passwd|mksmbpasswd.sh>/etc/samba/smbpasswd'.
Now the samba user database is created. As the next step, add the users who are allowed to login and access samba shares via the command 'smbpasswd'.
ie,, 'smbpasswd username' ,and specify the password which adds the user as a valid samba user. Only the user guest or smbguest are allowed login without a password, provided the share is exported with 'guest ok' mode. All other shares need a valid login.
Please don't forget to restart the service, so the changes takes place. You can access the shares either via mounting the share onto the local filesystem or by using smbclient. The format of smbclient is as follows:==
'smbclient //IP/share name -U username'.
Hope this configuration works, please write in if problems persists.
You need an existing account in the localmachine. Only a user who exists in the localmachine can be added to the smbpasswd file. Add the user first, then create the smbpasswd file,( you need to uncomment the line containing the path of smbpasswd file).
This is the format of smb.conf. Only the relevant portions are added.
workgroup = MYGROUP
server string = Samba Server
hosts allow = 192.168.1. 192.168.2. 127.
guest account = pcguest
log file = /var/log/samba/smbd.log
max log size = 50
security = user
smb passwd file = /etc/samba/smbpasswd
#============================ Share Definitions ==============================
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
winbind use default domain = no
comment = Home Directories
browseable = no
writable = yes