Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-25-2014, 04:22 AM
|
#1
|
Member
Registered: Nov 2011
Posts: 113
Rep:
|
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.
|
|
|
03-25-2014, 05:23 AM
|
#2
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
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.
|
03-25-2014, 06:44 AM
|
#3
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,287
Rep:
|
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 06:52 AM.
|
|
|
03-25-2014, 06:52 AM
|
#4
|
Member
Registered: Aug 2012
Location: Portugal
Distribution: Slackware, Salix OS
Posts: 55
Rep:
|
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
|
|
|
03-25-2014, 07:07 AM
|
#5
|
Member
Registered: Nov 2011
Posts: 113
Original Poster
Rep:
|
[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.
|
|
|
All times are GMT -5. The time now is 11:08 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|