LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-11-2006, 04:46 PM   #1
halfpower
Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 241

Rep: Reputation: 31
What SU Commands Have you Given to Your Login?


I have my login and my super user power but I have given next to nothing in the way of extra commands to my login. Have you given your login any extra powers? I still "su" to shutdown or reboot my machine.
 
Old 08-11-2006, 05:20 PM   #2
Samoth
Member
 
Registered: Apr 2005
Distribution: Exherbo
Posts: 474
Blog Entries: 1

Rep: Reputation: 32
I always su to do anything administrative-like. It is a potential security risk to give extra privileges to your user account.
 
Old 08-11-2006, 05:39 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by halfpower
I have my login and my super user power but I have given next to nothing in the way of extra commands to my login. Have you given your login any extra powers? I still "su" to shutdown or reboot my machine.
I've added myself to sudoers with the permission to
halt and reboot the box, and bring interfaces up & down.

For everything else I'll bite the bullet and su - (or su - root -c "command"
if know for sure what I'm up to), and punch in my root password.


Cheers,
Tink
 
Old 08-11-2006, 05:55 PM   #4
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Rep: Reputation: 45
How do you restrict what sudoers can do?
 
Old 08-11-2006, 08:00 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Eh?

That's the whole point of sudo; oh, you're using Ubuntu.

Change the line (using visudo):
<user> ALL=ALL
to say
<user> ALL=<comma-separated list of commands you want to allow>


Cheers,
Tink
 
Old 08-12-2006, 08:24 AM   #6
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Rep: Reputation: 45
Tinkster: You posted that there are only a few things you can do if you put yourself as a sudoer. Otherwise you have to actually login as root.

I asked how do you limit what a user in the sudoer group can do? But I see you answer the question nonetheless. This is on FC5 btw.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto-running commands on X login for all users Yalla-One Linux - Software 0 09-05-2005 11:49 AM
Use a shell script to do login and other commands jpan Linux - General 15 01-12-2005 06:52 AM
how to monitor all accounts run all commands from login to present? BRAHmS Solaris / OpenSolaris 4 08-20-2004 12:00 PM
how to execute commands on login k4zau Linux - Software 3 10-12-2003 01:52 PM
SSH login commands not found ??? avierstr Mandriva 0 08-26-2003 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:32 AM.

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