problem with samba share of user folder

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read how to get help

problem with samba share of user folder

Postby chieffun on Thu Nov 29, 2012 8:10 am

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.
chieffun
Level 1
Level 1
 
Posts: 3
Joined: Thu Nov 29, 2012 8:01 am

Linux Mint is funded by ads and donations.
 

Re: problem with samba share of user folder

Postby altair4 on Thu Nov 29, 2012 8:19 am

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.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6219
Joined: Tue Feb 03, 2009 10:27 am

Re: problem with samba share of user folder

Postby chieffun on Thu Nov 29, 2012 9:23 am

nice, thanks. is there any good reason to not make the login pass = the smb pass? why I have to do this manually?
chieffun
Level 1
Level 1
 
Posts: 3
Joined: Thu Nov 29, 2012 8:01 am

Re: problem with samba share of user folder

Postby altair4 on Thu Nov 29, 2012 1:14 pm

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.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6219
Joined: Tue Feb 03, 2009 10:27 am


Return to Other networking topics

Who is online

Users browsing this forum: No registered users and 2 guests