LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-18-2012, 12:14 AM   #1
jamesagil
LQ Newbie
 
Registered: Oct 2012
Location: Echuca Australia
Distribution: Slackware
Posts: 3

Rep: Reputation: Disabled
Problem with change from "su" to "user" in Slack 14.0


Installing Slack 14.0 over 13.37,got confused during process by new choice to download user/suser during installation setup.I ended up with bootup as su. I want to be able to bootup with my old username as before
'adduser' won't work as the name is already in the system. I want to start Slack 14.0 as 'user' as with 13.37 and retain my old username. what buttons must I push?
 
Old 11-18-2012, 12:58 AM   #2
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 437

Rep: Reputation: Disabled
If I'm understanding what you did properly, it seems you removed your user from /etc/passwd, so you will have to re-add the user. I don't see how "adduser" wouldn't work.
 
Old 11-18-2012, 01:39 AM   #3
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 14.1 64 Multi-Lib
Posts: 428

Rep: Reputation: 123Reputation: 123
If you're prepared to do open-heart surgery, you can, as 'root', simply edit /etc/passwd and change the user name directly. Don't do this unless you know EXACTLY what you are doing. And use a proper text file editor like 'vi', 'emacs' or 'nano'. You'll probably muck up the file format if you use a word processor (libreoffice, koffice etc).
 
Old 11-18-2012, 07:35 AM   #4
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 1,221

Rep: Reputation: 251Reputation: 251Reputation: 251
I may be missing something here, but if the name is already in the system, that suggests a couple of possibilities:
1. the UID associated with the name is not the same in 14.0 and 13.37, requiring an edit of /etc/passwd
2. the UID is ok but password is messed up, requiring a resetting of the password
 
Old 11-18-2012, 09:29 AM   #5
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 52
Quote:
Originally Posted by Mark Pettit View Post
use a proper text file editor like 'vi', 'emacs' or 'nano'.
Using 'vipw' will take some of the risk out of the open heart surgery.

Lyle.
 
Old 11-18-2012, 04:04 PM   #6
jamesagil
LQ Newbie
 
Registered: Oct 2012
Location: Echuca Australia
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TommyC7 View Post
If I'm understanding what you did properly, it seems you removed your user from /etc/passwd, so you will have to re-add the user. I don't see how "adduser" wouldn't work.
Hi Tommy, the system won't allow me to use "adduser" because that implies that I want to "add" an existing username. It seems that I have to drag it in some other way OR just modify the boot/start sequence to boot as "user"; either way would do.
 
Old 11-18-2012, 04:31 PM   #7
heinblöd
Member
 
Registered: May 2004
Location: France
Distribution: Slackware Gentoo
Posts: 185

Rep: Reputation: 31
So if your username still exists, why can't you log in then?
Can you log in as root ?
terminal or XDM/KDM ?

If you need to change a password or UID, GID or the homedir for an existing user , try


Code:
usermod (-d -s -p -m -l ) username
see man usermod

Last edited by heinblöd; 11-18-2012 at 04:32 PM.
 
  


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
unpredictable "delete" "move to trash" or "cut" file menu option dorianrenato Linux - General 3 11-28-2011 06:41 PM
".config" and ".kde" folders are being created under root directory (Slack Current) piratesmack Slackware 8 03-12-2011 11:06 PM
Fedora Core 2: Screen Resolution can not change from "800X600" to "1024X 768" suhaimi_sj Fedora - Installation 18 12-17-2009 03:29 AM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
ABIT "KN8 ultra" chipset "NFORCE4" & Slack 10.2 k6_400 Slackware 5 09-06-2006 06:13 PM


All times are GMT -5. The time now is 04:54 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration