Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-03-2013, 04:35 PM   #1
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Rep: Reputation: 13
Remove --system 'tag' from user

I created a user using
sudo adduser --disabled-password --system --home /home/user --group user
I now want to log into this user for the sake of testing something. I've set the password thanks to root, but how do I remove the --system bit so I can log into the user?
Old 08-03-2013, 07:44 PM   #2
Ser Olmy
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 2,463

Rep: Reputation: Disabled
The "--system" switch should only affect the UID/GID assigned to the user object.

A specific UID and GID range is set aside for "system accounts" (in /etc/login.defs, I believe) and if you want to make the account a non-system account later, you'll have to change the UID of that account.

I'm able to log in interactively using a "system" account on my system as long as the account has a valid shell. The adduser script on your system may have set the shell to /bin/false or something similar. You can check this with getent passwd username.

It is also possible that a setting in PAM could prevent interactive logins for accounts with UIDs in the "system" range.
Old 08-04-2013, 12:06 AM   #3
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Original Poster
Rep: Reputation: 13
Aha! It was set to /bin/false. With a quick Google, I changed it with chsh -s /bin/bash

Thanks! Back to my other thread in a moment!


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
[SOLVED] XML remove odd lines between tag grlopes Programming 9 09-16-2012 09:52 AM
remove <br> html tag and replace with newline punkska1977 Linux - General 3 12-05-2009 01:58 PM
How to DELETE/REMOVE default tag -D when compiling using CMake? rpkhere Linux - Newbie 1 06-30-2009 02:29 PM
A Way Tag Entry To MySQL With User Name windisch Programming 1 08-20-2006 07:22 PM
cvs tag remove lordofring Programming 2 10-27-2005 03:30 PM > Forums > Linux Forums > Linux - Newbie

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

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