Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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

  2. #2
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    To add a user

    # smbpasswd -a bob
    and to change its password

    # smbpasswd bob
    type and confirm the password...Done.

    edit:
    make sure you have
    smb passwd file = /etc/smbpasswd
    security = user
    under [global] in smb.conf

    once you make share add this under your [<share>]
    valid users = bob
    and
    public = no
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  3. #3
    Linux Newbie
    Join Date
    Feb 2009
    Posts
    101
    [ 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?

  4. #4
    Just 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

  5. #5
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    Yes, you can login in samba user account with other windows account.
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  6. #6
    Just 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •