Samba useradd

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

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

Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

Kruger_monkeyConnect With a Mentor Commented:
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
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?

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.

linuxdebianAuthor Commented:
Thnak you so much i will do with computer account
All Courses

From novice to tech pro — start learning today.