Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-03-2004, 09:48 AM
|
#1
|
Member
Registered: Aug 2004
Location: Argentina
Distribution: slackware 12
Posts: 211
Rep:
|
cannot execute some commands as an plain user!
hello....
my problem is when I log as 'user', I cannot execute the 'shutdown' command, neither the 'telinit' ... If I log as root, that commands work just fine.
Something similar happens with the aliases... first of all, there is not a '.bashrc'
file in my distro ...guess it's normal, so I discover I can make my aliases in the 'profile' file.... and it works ok...only if I'm root.. if I'm not, there is at least one alias that doesn't work, and it is the one who call the 'clear' command: when I log as user, when I execute 'myClearAlias', it returns me something like: 'can't find command' ..but if I execute the 'clear' command, it works ok... (in all of the unsuccessful cases, the error message is the same: 'can't find command', or something like that -- and ,of course, in the cases that the commad doesn't work, aliases pointing to that command neither works)
does anybody know what's wrong?
thanks in advance.
|
|
|
09-03-2004, 10:03 AM
|
#2
|
LQ Newbie
Registered: Sep 2004
Location: Sofia, Bulgaria
Distribution: Gentoo
Posts: 5
Rep:
|
Hi,
Commands such as halt,telinit,shutdown and etc are not supposed to be run from other user than root. And that is for all of the distro's. For the .bashrc created yourself. And put what you like in it. And it's normal when you make an alias to none exsting command to give you can't find command . An alternative of .bashrc is .bash_profile. .bash_profile executes on login and .bashrc on interactive shell startup.
|
|
|
09-03-2004, 02:25 PM
|
#3
|
Member
Registered: Aug 2004
Location: Argentina
Distribution: slackware 12
Posts: 211
Original Poster
Rep:
|
thanks for answer, Philip...
I have heard that's not good idea to log always as root , so -according with your explication, how should a plain user turn off the computer?
greetz
|
|
|
09-03-2004, 04:28 PM
|
#4
|
LQ Newbie
Registered: Sep 2004
Location: Sofia, Bulgaria
Distribution: Gentoo
Posts: 5
Rep:
|
You've heared well, if you gone shutdown just su and shutdown. Normal practice is when you need root priviliges su and do what you(system administration things) and then back to the normal user.
|
|
|
09-03-2004, 05:38 PM
|
#5
|
Senior Member
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272
Rep:
|
If you are not concerned about other people being able to shutdow, you can also change the permissions for it. man chmod
|
|
|
09-03-2004, 07:34 PM
|
#6
|
Member
Registered: Aug 2004
Location: Argentina
Distribution: slackware 12
Posts: 211
Original Poster
Rep:
|
thanks, pals!
gonna stay in touch
|
|
|
All times are GMT -5. The time now is 10:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|