PDA

View Full Version : [ubuntu] samba add user



Mr. Win
June 22nd, 2008, 08:24 PM
I'm trying to create a user account for samba so that I can connect to it via Windows XP. How do I do this?

I'm on 07.04

sisco311
June 22nd, 2008, 08:29 PM
To setup a password for your ubuntu user:

sudo smbpasswd -a your-user-name

To create a new samba user:

sudo useradd username
sudo smbpasswd -a username

dmizer
June 23rd, 2008, 07:28 AM
you're probably better off adding samba users that don't have shell access like so:

sudo useradd -s /bin/true username
sudo smbpasswd -L -a username
sudo smbpasswd -L -e username