LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-03-2013, 05:35 PM   #1
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 348

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


I created a user using
Code:
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, 08:44 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,404

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, 01:06 AM   #3
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 348

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!
 
  


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


All times are GMT -5. The time now is 06:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration