Page 1 of 1

problem with samba share of user folder

Posted: Thu Nov 29, 2012 8:10 am
by chieffun
hi, I have tried to share my user folder in /home by right-clicking it and share. Guest and write permissions are deselected. when I now browse to this share from win7, I have enter a user and pass, and when I do so, I get a permission denied.

One month ago I did the same thing with ubuntu 12.10, it installed samba, which is already installed in mint, asekd me to logout, then I could share like I did in mint now. Because win7 uses the same login than my ubuntu and now mint install, I had not to enter any login at all (with ubuntu). Every other pc in my network had to enter user and pass, but not the ones with the same user.

Now in mint, even with the entered user and pass, no permission.

Can anyone help please?

Have a nice day.

Re: problem with samba share of user folder

Posted: Thu Nov 29, 2012 8:19 am
by altair4
Based only on your description of what you did you seem to have left out one step: Creating a samba password for yourself:

Code: Select all

sudo smbpasswd -a altair
Change altair to your own login user name.

Re: problem with samba share of user folder

Posted: Thu Nov 29, 2012 9:23 am
by chieffun
nice, thanks. is there any good reason to not make the login pass = the smb pass? why I have to do this manually?

Re: problem with samba share of user folder

Posted: Thu Nov 29, 2012 1:14 pm
by altair4
chieffun wrote:is there any good reason to not make the login pass = the smb pass?
Yes. Samba was created for UNIX servers and any System Admin that created a local user with a login password and a samba password that matched would be fired on the spot.

Even today if you do this on your home network where you have multiple lan users you would not want to do this since the remote lan user now has access to the physical server itself.

In a true client - server setup the local user representing the lan user would not have login access to the server directly ( or have a home directory ) so you have to add him to the samba password database manually anyway.

If you don't care about privacy or security or there only is one user in the network you can install a package that forces the local login password and the samba password to match:

Code: Select all

sudo apt-get install libpam-smbpass
This will force the 2 to be the same at every reboot.