LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-08-2014, 11:40 AM   #1
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
How would this command "translate" to Slackware?


Hi, I am trying to follow this to run Windows apps on a different user.

How would I apply this command on Slackware:

Code:
sudo adduser --disabled-login --shell /forbid/login wine
 
Old 11-08-2014, 12:49 PM   #2
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Slackware uses "useradd" rather than "adduser". You can use "-s /bin/false" to disable the login shell.

Brian
 
Old 11-08-2014, 12:54 PM   #3
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
With useradd, I'd say.

Code:
su -c 'useradd -M -s /bin/false wine'
Read useradd man page for all the details.
 
Old 11-08-2014, 01:03 PM   #4
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
Since the wine user will have a home folder (all programs will be installed under /home/wine/.wine) I assume I should run the following:

# useradd -m -s /bin/false wine

Last edited by moisespedro; 11-08-2014 at 01:05 PM. Reason: Added -m
 
Old 11-08-2014, 01:15 PM   #5
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
Another question: The author suggests changing umask from 022 to 027. Would you advise/do that?
 
Old 11-08-2014, 01:17 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,929
Blog Entries: 45

Rep: Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160
Member response

Hi,

I still use PV's modified front end 'adduser' for 'useradd' on new installs;
Quote:
##########################################################################
# Program: /usr/sbin/adduser
# Purpose: Interactive front end to /usr/sbin/useradd for Slackware Linux
# Author : Stuart Winter <mozes@slackware.com>
# Based on the original Slackware adduser by Hrvoje Dogan
# with modifications by Patrick Volkerding
# Version: 1.15
##########################################################################
Hope this helps.
Have fun & enjoy!
 
Old 11-08-2014, 01:52 PM   #7
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by BCarey View Post
Slackware uses "useradd" rather than "adduser". You can use "-s /bin/false" to disable the login shell.

Brian
adduser is actually a wrapper script to comfortably add users, but useradd is called under the hood. To add system users, use useradd.
 
Old 11-09-2014, 12:51 PM   #8
saulgoode
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 288

Rep: Reputation: 155Reputation: 155
I consider specifying the shell as /sbin/nologin to be slightly preferable to /bin/false, as it provides a mildly useful failure message.
 
2 members found this post helpful.
  


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
Chromium: how to "translate" build number to version? s09 Slackware 2 09-30-2014 07:45 AM
[SOLVED] Slackware unable to shutdown or reboot user account "command not found". Pinonoir Linux - Desktop 12 05-06-2014 07:50 PM
Shouldn't "Slackware64" Become just "Slackware" and 32-bit Become "Slackware32"? foodown Slackware 6 06-23-2009 01:24 PM
How to "translate" grub bootloader to extlinux? atkfossiili Linux - General 5 03-21-2008 02:31 AM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM

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

All times are GMT -5. The time now is 03:57 AM.

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