OpenSuSe useradd help
September 2021
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
This site is an effort to share some of the base knowledge I have gathered through all this years working with Linux, FreeBSD, OpenBSD, Python or Zope, among others. So, take a look around and I hope you will find the contents useful.
Recent Entries
Recent Comments
Recent Trackbacks
OpenBSD (9 items)
BSD (0 items)
FreeBSD (19 items)
Linux (3 items)
Security (3 items)
Python (22 items)
Zope (13 items)
Daily (144 items)
e-shell (9 items)
Hacks (14 items)
PostgreSQL (3 items)
OSX (8 items)
Nintendo DS (0 items)
enlightenment (0 items)
Apache (3 items)
Nintendo Wii (1 items)
Django (24 items)
Music (12 items)
Plone (7 items)
Varnish (0 items)
Lugo (2 items)
Sendmail (0 items)
europython (7 items)
Cherokee (1 items)
self (1 items)
Nature (1 items)
Hiking (0 items)
uwsgi (0 items)
nginx (0 items)
cycling (10 items)
Networking (1 items)
DNS (0 items)

Syndicate this site (XML)

RSS/RDF 0.91

25 mayo

OpenSuSe useradd help

or why developers should not add nonsense options

This weekend I had to do some things on an OpenSuSe 10.3 server (some dirty migration of a Zope/PostgreSQL webapp). One of the tasks I had to do involved the creation of some user accounts. Yes, I know there is YasT in the SuSe world, but something like the Slackware's adduser script should be a better tool.

In OpenSuSe, there is a man page for adduser but calling man adduser sends you to useradd(8)... ok, (I thought), "useradd should be a similar tool".

So I tried useradd directly, expecting a help message:

server:~ # useradd
useradd: Too few arguments.
Try `useradd --help' or `useradd --usage' for more information.
server:~ #

Nice, there was a message, and it pointed me to two different options to get more info. I decided to try --usage (the tipical shorter version of the help) but, guess what?

server:~ # useradd --usage
Usage: useradd ...
server:~ #

WTF! That is a really useful message! (of course --help has the full help, but anyway...)

Posted by wu at 01:46 | Comments (0) | Trackbacks (0)
<< When one second seems one hour... | Main | I'll be at the europython 2009 >>
Re: OpenSuSe useradd help

in contrast in OpenBSD, usage is printed by default:
~$ useradd
usage: useradd -D [-b base-directory] [-e expiry-time] [-f inactive-time]
[-g gid | name | =uid] [-k skel-directory] [-L login-class]
[-r low..high] [-s shell]
useradd [-mov] [-b base-directory] [-c comment] [-d home-directory]
[-e expiry-time] [-f inactive-time]
[-G secondary-group[,group,...]] [-g gid | name | =uid]
[-k skel-directory] [-L login-class] [-p password] [-r low..high]
[-s shell] [-u uid] user

Posted by: rgouvea at mayo 26,2009 10:54
Re: OpenSuSe useradd help

And you have a user-friendly adduser script too, that asks you for every piece of information needed in order to create a user... ;D

I don't understand why some linux distributions do not have such script, it is very useful (even more if you compare it to the full-bloated YasT tool, for example)

Posted by: Wu at mayo 26,2009 11:20
Please send trackback to:
There are no trackbacks.
Post a comment