Samba useradd

Hello
I do not understand the differences between :
root#/usr/sbin/useradd -g  newgroup -s /bin/false comp1$
or
root# useradd -g newgroup comp1$

I use debian but which one i need to use ?
Thnak you for help

linuxdebianAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kruger_monkeyCommented:
Is this for the computer account?

The main difference in the first one, you are assigning comp1$ a shell which points to /bin/false.  In other words a shell that doesn't do anything.


I use the following  /usr/sbin/useradd -s /bin/false -d /var/lib/nobody %u

the -d sets a home folder which computer accounts don't need
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
linuxdebianAuthor Commented:
I build new debian samba server in our office.
We have 20 users and i thought if i create computers accounts and user accounts would be better for administration in future. is that correct? or i dont  need computers account at all?

Regards
0
Kruger_monkeyCommented:
From what I remember, creating the accounts up front will make it slightly easier, but if you configure your smb.conf correctly you can add computers to it as normal assuming you are using it as a PDC.

If it is just for file sharing, I'm not sure you need a computer account to be fair, but create them just to be safe.

0
linuxdebianAuthor Commented:
Thnak you so much i will do with computer account
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
File Sharing Software

From novice to tech pro — start learning today.