Results 1 to 6 of 6
Hi there I am currently in the process of tinkering with Samba, I have a windows XP machine and a Debian Rig, both machines are communicating with each other fine
...
- 02-12-2009 #1Just Joined!
- Join Date
- Jan 2008
- Posts
- 5
Samba, Creating user's to access shares
Hi there I am currently in the process of tinkering with Samba, I have a windows XP machine and a Debian Rig, both machines are communicating with each other fine
And I completed my first Samba config which is all working great.
[ global ]
workgroup = Dragon
security = SHARE
[ Plans ]
path = / plans
read only = Yes
guest ok = Yes
Currently as you can see from the above example, there is no security on the share and anyone can access the computer.
I want to know the procedure for creating a user and a password so that they can access the samba share.
Do I have to create a Samba user, Samba password, Linux user, and windows user? this is really confusing me.
Using the above example how would I go about creating a user called Bob to only have access to the samba shares.
Many Thanks
- 02-12-2009 #2
To add a user
and to change its password# smbpasswd -a bob
type and confirm the password...Done.# smbpasswd bob
edit:
make sure you have
under [global] in smb.confsmb passwd file = /etc/smbpasswd
security = user
once you make share add this under your [<share>]
andvalid users = bob
public = no
- 02-12-2009 #3Linux Newbie
- Join Date
- Feb 2009
- Posts
- 99
[ global ]
workgroup = Dragon
security = USER
[ Plans ]
path = / plans
writable = yes
guest ok = No
add one linux system user by : useradd dragon
change system user to samba user by : samba -a draon
entype password: 123
so you can access samba from windows by using [user:draon, password:123]
any help?
- 02-12-2009 #4Just Joined!
- Join Date
- Jan 2008
- Posts
- 5
Thank you for the replies, I havent had time tonight to test both solutions. But I will sitdown and have a tinker tommorow,
Regarding the Samba user configuration do I need to create a user on the windows box which matches the user created within smb.conf
I.e if I were to logon on my windows box as user and then try to access the samba shares and i'm greeted with the authentication prompt and I type in bobs credientials would it work, even though i'm using a different windows u/n
- 02-13-2009 #5
Yes, you can login in samba user account with other windows account.
- 02-13-2009 #6Just Joined!
- Join Date
- Jan 2008
- Posts
- 5
Thank you all for your help, I shall experiment tonight and report back my smb.conf and progress.


Reply With Quote