Creating Samba User

October 22nd, 2006 liewsheng Posted in Admin, smbpasswd, useradd | Hits: 112920 | 17 Comments »

After you have install samba sever, yous still can’t login samba server. You will need create a samba user :

smbpasswd -a username

‘-a’ switch tell smbpasswd we want to add a new user, is the user you want to add. Please take note, username must exist in /etc/passwd file else you will need the use ‘useradd’ to create a user in Linux :

useradd -d /home/username -s /bin/false -n username

This will create a new user with same group name with (told by ‘-n’), but the user can’t login and run any shell command (because you have specfic the login shell is /bin/false by the ‘-s’ switch, if you want allow user to able to login to a shell, replace /bin/false with /bin/sh).

Ok now you have create a new samba user, how about you want delete or disable them? ‘-d’ switch will disable the user to login to samba server:

smbpasswd -d username

If you want to delete a user permanently:

smbpasswd -x username

Hope you guys, happy communicate with Windows ya ;-p

17 Responses to “Creating Samba User”

  1. […] How? My friend’s (toydi) side need to create a reverse tunnel, 1. He create an user account for me as mysurface, uses useradd 2. Set a default password for mysurface user account, uses passwd 3. Setup ssh reverse tunnel […]

  2. […] Samba Create Samba user: Open terminal and type… smbpasswd -a […]

  3. Muchisimas gracias por el dato, me sirvio bastante…

  4. There is some solid information on this page. I am in love with your blog so far. I’ve added the feed to my boomarks and will give you a mentioning over at my blog. I did have a problem with how quick this blog entry loaded. Might be a problem to optimize.

  5. Hello . I love browsing your site. If you want to learn about Dance Jazzy House R&B check out my site!

  6. thanks alot dear it worked 4 me

  7. Thanks for this simple Samba guide.

  8. I do not know whether it’s just me or if perhaps everyone else encountering problems with your site. It appears like some of the text in your content are running off the screen. Can somebody else please comment and let me know if this is happening to them too? This could be a issue with my web browser because I’ve had this happen previously.

  9. 968258 993401[…]the time to read or visit the content or sites we have linked to below the[…]? 655645

  10. 959475 492086extremely nice post, i certainly enjoy this fabulous web site, persist with it 648738

  11. I’ll immediately understand ones rss once i can not to locate the e-mail subscription backlink or perhaps publication program. Have you got every? Please permit me recognize to ensure I might register. Thank you.

  12. As you may all know 8 Ball Pool by Miniclip is the most significant and very best multiplayer Pool game on-line!
    It gives you the capacity to engage in for totally free against other opponents.
    It is difficult to get cash when you do not have the eight Ball ultimate
    instrument 4.3 this is why you will want this resource to display off in the
    multiplayer tournaments and can brag with the 8
    ball final hack four.3 you had been ready to acquire all types of cues and desk pores and skin.
    With this eight Ball multiplayer cheat you ready to enter the
    pool shop and purchasing something to personalize your profile to your eyes.
    With two clicks you will have Totally free Miniclip Credits, Limitless Cost-free eight Ball Multiplayer Pool
    Points, Cost-free eight Ball Multiplayer Awards and final but not
    minimum Free of charge 8 Ball Pool Multiplayer
    Precision Hack. You will practically always car-win your 8ball video games.
    With the eight Ball Pool Supreme Hack four.three, You will no for a longer time have to spend your total
    day making an attempt to generate all achievements or waste your useful income on pool cues, tables or boosts!
    This 8 Ball Multiplayer Hack will help save you valuable time by possessing all what you want in
    1 click on, You will be able to modify amount of coins you desire far.
    It delivers many characteristics that no other tools
    will supply. What are you waiting around for?
    Make the most of 8 Ball Pool Multiplayer!

  13. Hmm is anyone else experiencing problems with the images on this blog loading?

    I’m trying to determine if its a problem on my end or if
    it’s the blog. Any feedback would be greatly appreciated.

    my web site 8 ball pool android hack

  14. Lots of people are spending $50-$100 monthly to enjoy cable or satellite television. In spite of
    the most beneficial efforts of driving Standard bank housing prices all over the world are pushed entirely by existe
    day tips. A wise traveler back then always asked to look inside a cabin before renting.

    My blog post … Hay Day Cheats (

  15. This is really attention-grabbing, You’re an overly professional blogger.

    I’ve joined your feed and look forward to seeking extra
    of your excellent post. Additionally, I have shared your web site in my social networks

  16. I have checked your page and i’ve found some duplicate
    content, that’s why you don’t rank high in google’s search results, but there is a
    tool that can help you to create 100% unique content,
    search for: boorfe’s tips unlimited content

Leave a Reply