problem with samba share of user folder

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
chieffun

problem with samba share of user folder

Post 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.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
altair4
Level 20
Level 20
Posts: 11427
Joined: Tue Feb 03, 2009 10:27 am

Re: problem with samba share of user folder

Post 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.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
chieffun

Re: problem with samba share of user folder

Post 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?
altair4
Level 20
Level 20
Posts: 11427
Joined: Tue Feb 03, 2009 10:27 am

Re: problem with samba share of user folder

Post 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.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Locked

Return to “Networking”