samba server


Forum: Networking
Topic: samba server
started by: forgreatjustice

Posted by forgreatjustice on Oct. 16 2006,18:31
hey everyone trying to set up a samba server to share files on my dsl box
i got to the point where i can see the server in my xp box but when ever i try to access it i get this error
\\box is not accessable you do not have permision to access this server

edit.
also how can i get the samba and ftp and ssh servers to start with the comp?

Posted by ^thehatsrule^ on Oct. 17 2006,14:57
Check your samba server's conf files.

For startup, there may be a cheatcode/bootcode you can use, or you can add it to bootlocal.sh

Posted by larkl on Oct. 20 2006,11:55
You might check the paswords, esp the smbpasswords.  Did you create a samba password for the XP user on the DSL box?  This is in addition to the normal password.  You may need to look at the password encryption settings in the smb.conf file.  You won't get into the samba server without the encryption.  The smb.conf explains it well and there's a ton of stuff on the internet.
Posted by flow on Nov. 12 2006,13:01
How do you add a samba user and change te password? smbpasswd is not available...
Posted by dtf on Nov. 12 2006,15:20
If you want to require a login for samba share you need to try adding the following in the smb.conf file.

You must set "encrypt passwords = yes" as windows defaults to using encrypted passwords.  I find it easier to also set "security = share".  Next you have to add the window's login and password you want to use to DSL.  You can use the AddUser option in the dsl menu.  It is best if the password matches the window's password and the user must match.  You then use the command smbpassword (or smbpasswd) command (type it in a xterm window) to add the same user and password.  On the window machine (I think most of this is right).  Your user name must be a continous set of characters like john_smith and not john smith.  Also I avoid using capitals like JohnSmith (although I am not sure if this is needed) but windows is not case sensitive and linux is, so I just avoid the issue by sticking to lower case.

Now you can avoid all of this by use the "public = yes" option in the samba share but this allows access to all users so you need to consider your security.  If you are on a private network with the proper ports blocked by a firewall to and from the internet you should be ok.  Below is an example of a public share.

Quote

[public]
       comment = Everyone
       path = /mnt/hda3/public
       browseable = yes
       public = yes
       readonly = no


Of course the path you specify in the share must exist with the proper permissions.  If it is public then at least read access needs to be granted to "other user".  If you are allowing write permission then that bit must also be set.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.