LinuxQuestions.org
Review your favorite Linux distribution.
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 07-14-2010, 03:03 AM   #1
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Rep: Reputation: 110Reputation: 110
su - "Sorry."


I just logged in to my remote shell account like I always do: as an ordinary user, because root login is disabled in sshd. Then I may want to become root with the 'su -' command.

But the 'su -' command did not work today. Every time I tried, I got this laconic message: "Sorry."

Note that I wasn't even given a chance to enter the password. Just 'su -', Return, "Sorry."

I logged in to the service host control panel and rebooted the system. I can su - and be root again.

Fine, but... What happened?!! I searched Google and only found reports of people who at least were given the chance to enter the password.
 
Old 07-14-2010, 04:09 AM   #2
mutexe
Member
 
Registered: May 2009
Location: Malvern, UK
Distribution: Slackware 14.1
Posts: 240

Rep: Reputation: 32
Might sound silly, but maybe a sticky key?
 
Old 07-14-2010, 01:41 PM   #3
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Is your user a member of the group "wheel"?

samac
 
Old 07-14-2010, 02:07 PM   #4
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
I never login remotely, so I can't test it, but I know that there's an option (somewhere) to disallow root logins from anywhere but console. See for example:

http://www.linuxquestions.org/questi...ssible-624540/

(from "disable remote root login" in google)

Last edited by mostlyharmless; 07-14-2010 at 02:10 PM.
 
Old 07-14-2010, 04:15 PM   #5
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Original Poster
Rep: Reputation: 110Reputation: 110
Thank you for the attention, but the replies I am getting here don't make a lot of sense.

A sticky key? No, the problem went away as soon as the VM was rebooted.

The user is not a member of the "wheel" group, but I said I log in as user then escalate to root with 'su ' all the time. That didn't work all of a sudden. Then the problem went away after a reboot. This doesn't seem to have anything to do with permissions.

Root login is disallowed, I said that myself in the original post. But I've always been able to become root with 'su -'.
 
Old 07-14-2010, 04:32 PM   #6
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Sorry I missed that part, I'll try to be more careful reading; well hmm, was there an update of ssh recently? Change in config files?

I guess if the problem went away after a reboot, well then problem solved... weird though..
 
Old 07-26-2010, 05:18 PM   #7
kd5zex
LQ Newbie
 
Registered: Dec 2008
Distribution: Slackware
Posts: 28

Rep: Reputation: 15
I am having the same issue as the OP. A reboot fixed it for a day or so but it has stated happening again. It seemed to start after installing and configuring mysql.

Also, I have getting this error when I try to do a man. The two issues are occurring together and seem to be related.

Code:
$ man man
Error executing formatting or display command.
System command (cd "/usr/man" && (echo ".ll 12.7i"; echo ".nr LL 12.7i"; echo ".pl 1100i"; /bin/gunzip -c '/usr/man/man1/man.1.gz'; echo ".\\\""; echo ".pl \n(nlu+10") | /usr/bin/gtbl | /usr/bin/nroff -mandoc | /usr/bin/less -is) exited with status 256.
No manual entry for man
I see the man page come up for a moment before it gives that error.
 
Old 07-26-2010, 07:31 PM   #8
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,767
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
I used to use su - all of the time. I have since started using sudo -i instead. The option "-i" asks that sudo simulate a user login. After authentication, you get a shell prompt with root permissions. Use CTRL-D or logout to end the login shell. The security advantages of sudo far outweigh any other convenience. Most useful to me, is the logfile that I can use to discover what I did if something goes awry.

Most of the su and sudo problems I've had can be traced to two families of details:
  • contents of the respective configuration files [url[/etc/sudoers[/url]
  • permissions of various files and folders that the commands encounter in the respective $HOME folders as well as the configuration files
Command configuration requires whatever it does and those rules are pretty specific and well documented. Little differences can create large changes in behavior.

Both su and sudo carefully guard the permissions of controlling files to prevent unwanted tinkering to gain or alter configured access.

~~~ 0;-Dan
 
Old 07-27-2010, 09:52 PM   #9
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Original Poster
Rep: Reputation: 110Reputation: 110
Quote:
Originally Posted by kd5zex View Post
I am having the same issue as the OP. A reboot fixed it for a day or so but it has stated happening again. It seemed to start after installing and configuring mysql.

Also, I have getting this error when I try to do a man. The two issues are occurring together and seem to be related.
I am the original poster. For whatever it's worth, the problem only occurred to me once, I never had the problem with 'man' and I don't have mysql. Not that it helps with anything, but I thought I should say it.
 
  


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
how can I "cat" or "grep" a file to ignore lines starting with "#" ??? callagga Linux - Newbie 7 08-16-2013 06:58 AM
"Multicolumn" or "tiles", or even "list" icon view on desktop, in any DE? the dsc Linux - Desktop 3 02-20-2010 09:25 AM
net working eth0 eth1 wlan0 "no connection" "no LAN" "no wi-fi" Cayitano Linux - Newbie 5 12-09-2007 07:11 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM

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

All times are GMT -5. The time now is 08:07 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
Open Source Consulting | Domain Registration