adduser doesn't quite get it

Michal Jaegermann michal at harddata.com
Mon Oct 27 17:44:29 UTC 2008


On Mon, Oct 27, 2008 at 09:52:42AM -0700, Jesse Keating wrote:
> On Mon, 2008-10-27 at 07:30 -0700, Chuck Forsberg WA7KGX N2469R wrote:
> > A user added with the adduser command doesn't seem to have as many
> > privileges as one added from the GUI.  The obvious one is the ability to
> > use the sound system.  That was the problem with xmms.
> 
> Which command line tool did you use to create the user?  IIRC one of
> them (luseradd) uses libuser as the backend, which can set the selinux
> permissions correctly where as useradd does not.

In such situation should not be useradd "fronted" by a shell script
which uses luseradd when possible and "the real useradd", with a
possible warning, in the remaining cases?  Unfortunately there is
no one-to-one mapping in options.  As a matter of fact only useradd
mentions something selinux related (option '--selinux-user').

Before anybody will ask - adduser and useradd this is the same
thing.

   Michal




More information about the test mailing list