LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-25-2014, 03:22 AM   #1
ethoms
Member
 
Registered: Nov 2011
Posts: 113

Rep: Reputation: Disabled
Is adduser command same as in Debian


Hi, I'm just starting to find my way around Slackware. I noticed that it has an adduser command. Is it the same as the one found in Debian?

I tried to compare using the man page, but there doesn't seem to be a man page for adduser. The reason I ask is that in Debian's version it has a config file /etc/adduser.conf. I have developed a GUI frontend for adding users that has its defaults configured in /etc/adduser.conf.

The main reason I need to alter defaults is to change the default groups that a new regular user belongs to.
 
Old 03-25-2014, 04:23 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105
The Slackware "adduser" script was created in 1995 as a wrapper for the UNIX useradd command, and was vastly improved by Stuart Winter and Patrick volkerding.
I doubt that there will be similarities with the Debian version of the script, unless Debian borrowed it from Slackware.
In any case, the Slackware script does not read a configuration file.

Eric
 
1 members found this post helpful.
Old 03-25-2014, 05:44 AM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,048

Rep: Reputation: Disabled
And in any case /usr/sbin/adduser being a shell script you can easily modify it if need be. For instance you could edit this line :
defgroup=users
to change the default group for users if that's what you want.

Last edited by Didier Spaier; 03-25-2014 at 05:52 AM.
 
Old 03-25-2014, 05:52 AM   #4
sardinha
Member
 
Registered: Aug 2012
Location: Portugal
Distribution: Slackware, Salix OS
Posts: 55

Rep: Reputation: 10
It's similar, but not with all features options. For example I think in Debian it is possible to add a user alpha to a group beta with command: adduser alpha beta . In Slackware it can be done with the command: usermod -a -G beta alpha

Read it in Slackware Docs - User and Group Management:
http://docs.slackware.com/slackbook:users

You can see some examples too (in french) written by kikinovak: http://www.microlinux.fr/slackware/L...ment-HOWTO.txt
 
Old 03-25-2014, 06:07 AM   #5
ethoms
Member
 
Registered: Nov 2011
Posts: 113

Original Poster
Rep: Reputation: Disabled
[SOLVED] Is adduser command same as in Debian

OK, thanks for the quick and very useful responses.

I think since I can't copy functionality directly, I will just make a Slackware version of my GUI. Instead of calling adduser I'll just call useradd with the appropriate flags. The GUI is pyqt4 and is a simple wrapper for shell commands. I may even go as far as to pull the groups from a centrally managed database.

Once again, thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adduser or useradd command not working romel Linux - Newbie 6 01-31-2012 04:05 AM
Cannot find adduser, usergroup command wisdom Fedora 11 08-15-2009 05:08 PM
adduser in debian TSoft Debian 6 04-15-2007 04:20 PM
CentOS 4.4 - no useradd or adduser command Micro420 Red Hat 5 04-04-2007 11:14 PM
adduser command in Suse 10.0 anassusu SUSE / openSUSE 3 11-12-2005 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration