LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-29-2022, 05:04 PM   #16
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514

Quote:
On ubuntu it is not possible to login to the root account.
Last time I tried this worked :
Code:
sudo su
passwd
exit
su -
input password defined 3 steps above
 
1 members found this post helpful.
Old 12-29-2022, 06:50 PM   #17
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,799

Rep: Reputation: 4437Reputation: 4437Reputation: 4437Reputation: 4437Reputation: 4437Reputation: 4437Reputation: 4437Reputation: 4437Reputation: 4437Reputation: 4437Reputation: 4437
Maybe it's primarily because my first GUI was DOS PCTools PCShell and Midnight Commander but I am heavily reliant on working from a File Manager in addition to from CLI. In Slackware that means I must "kdesu dolphin" a LOT because, unlike other distros that are serious enough to create a root account by default, for some reason with those, launching just "dolphin" as User, any action requiring root access immediately triggers a root password query. Perhaps I'm missing some config variable that is default in others but it is a bit of a PITA.
 
Old 12-30-2022, 08:24 AM   #18
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 993

Rep: Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674
Quote:
Originally Posted by Tonus View Post
Last time I tried this worked :
Code:
sudo su
passwd
exit
su -
input password defined 3 steps above
Sorry, I should have written "not possible by default".

regards Henrik
 
Old 12-31-2022, 06:19 AM   #19
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 380

Rep: Reputation: Disabled
Quote:
For home users doing system maintainence, is it safer to use sudo or log-in as root? I have read it is better to use sudo.
I don't like sudo...

It is safer [than using the root account] if you actually limit what programs you can run with it. ---BUT--- Every "home" user that I know just sets sudo permissions to ALL (which defeats the purpose).

I prefer to use root account because it's one more login, one more password to thwart intrusion. I disable ssh-root login and if someone gets my password they can't do much system damage unless they also get root's password too.

Raspbian's, Mint's, Ubuntu's, etctera's use of sudo is just plain crazy. Allowing a user total access to the system is the same as using the root account (security wise).

Last edited by arfon; 12-31-2022 at 06:49 AM.
 
4 members found this post helpful.
Old 12-31-2022, 11:32 AM   #20
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian, OpenBSD
Posts: 7,345

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by arfon View Post
I don't like sudo...

It is safer [than using the root account] if you actually limit what programs you can run with it. ---BUT--- Every "home" user that I know just sets sudo permissions to ALL (which defeats the purpose).
Agreed. As the system administrator you trust yourself to safely execute commands on your system. Maybe you have another user (a family member) that has log-in access to your system. Limiting what they can do is a good idea. You don't give them the root password and you set-up sudo so they can do only what you want with their user password. Here's a few tutorials on how to do that.

Mini tutorial : Restricting sudo users to only a handful commands

Enabling Sudo on Slackware

Quote:
Originally Posted by arfon View Post
Raspbian's, Mint's, Ubuntu's, etctera's use of sudo is just plain crazy. Allowing a user total access to the system is the same as using the root account (security wise).
I agree, that's bonkers.

Last edited by hitest; 12-31-2022 at 11:42 AM. Reason: Addition
 
2 members found this post helpful.
Old 01-01-2023, 12:29 AM   #21
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Xubuntu
Posts: 459
Blog Entries: 2

Rep: Reputation: 194Reputation: 194
Quote:
Originally Posted by hitest View Post
Yes. Also as the system administrator you can configure sudo so that a user can only execute a defined set of root commands, that is, they can only do things that you allow them to do. This would be valuable if you have multiple users using the same box. There may be some users that you don't want to have full system access.
While that is absolutely true, you will have to be careful to prevent them running any commands from which they can subsequently run a command-line shell, since they can then run any command from that shell. That would entirely defeat the purpose.
 
Old 01-01-2023, 09:06 AM   #22
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian, OpenBSD
Posts: 7,345

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
One of my favorite authors, Michael Lucas, gives a great talk on sudo.

Sudo: You're doing it wrong
 
  


Reply



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
LXer: The Differences between Su, Sudo Su, Sudo -s and Sudo -i LXer Syndicated Linux News 0 09-15-2022 07:47 PM
[SOLVED] sudo to user other than root but do not allow sudo to root Westmoreland Linux - Security 4 07-13-2022 01:09 PM
LXer: The Ultimate Sudo FAQ — To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 01:36 AM
'sudo ls /root/monitor/' outputs, 'sudo ls /root/monitor/*' does not stf92 Slackware 10 07-19-2012 05:20 PM
Can't use sudo, only account that's not root is not a sudo'ers [Ubuntu 9.10] randyriver10 Linux - Desktop 1 01-09-2010 07:56 PM

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

All times are GMT -5. The time now is 01:04 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