Jump to content

All users allowed to use command - How to do it?


Guest krish
 Share

Recommended Posts

Guest krish

Hi,

 

I would like that all users can use a command. I don't how how to do. The command chmod is just for the files, but not for the command.

 

I would like to do "su root and the password" on the same line. Maybe to search the password in a file... :unsure:

 

Thanks

Link to comment
Share on other sites

Unsure what you are wanting to do. Any user can use the command su, they just have to know the root password. If you are daring you can let root have no password. As I understand it there are two issues you may be getting at: one is PATH and the other is commands restricted to root (logging in as su). If a command is not in a users path you can add it via export PATH=$PATH:, for instance to search in /usr/sbin for commands if the user does not have it in his/her path enter export PATH=$PATH:/usr/sbin

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...