LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-20-2005, 06:37 PM   #1
zchoyt
Member
 
Registered: Feb 2003
Location: Boise ID
Distribution: fedora
Posts: 156

Rep: Reputation: 30
command permissions


Is there a way to make a command available to all users (like mount, chmod,etc....)? I realize that this is a huge security risk. I am asking for the sake of learning.

Is sudo the only way to do this, or is there a way to actually change the command? Sudo is more of a wrapper.
 
Old 05-20-2005, 08:14 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,863

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
"Is there a way to make a command available to all users (like mount, chmod,etc....)?" I realize that this is a huge security risk. I am asking for the sake of learning."

The commands you mention are available to users on my SuSE system. Whether SuSE makes such commands available to users depends on the level of security that I choose at install time. I seem to remember that Fedora gives you the same choice.

If you want a command to be available to a user then be sure that the command is on the user's PATH and set the command's permissions to 755.

"I realize that this is a huge security risk."

Not necessarily. It depends on what you want to allow users to do. A command is only a security risk if it is available to users when you don't want them to use the command.

"Is sudo the only way to do this, or is there a way to actually change the command? Sudo is more of a wrapper."

sudo is one way to do it, but not the only way. Sudo allows you to give different sets of root privileges to different users. For example you could use sudo to allow you and your wife to shut down the computer, but not the kids.


---------------------------
Steve Stites

Last edited by jailbait; 05-20-2005 at 08:16 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
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 01:00 PM
permission ... permissions .... permissions alaios Linux - General 1 05-31-2005 05:16 AM
Command line permissions Rawr101 Linux - General 4 10-16-2004 11:45 PM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 01:52 PM
permissions messed up chown command used tsayles21 Debian 3 03-30-2004 09:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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