Linux - NewbieThis 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
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.
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.
when I'm done or want to reboot I logout of KDE and if I'm logged in as "alex" and I can't type halt or reboot. it gives me "-bash: halt: command not found".
I have to be su just to halt.
not the end of the world but annoying as I am setting up my system still and am rebooting often.
I think I was miss understood here. I do logout of KDE from the main menu and it get's me to the black screen where I had to type "startx" to load KDE. when I logout of KDE I am still logged in as Alex, my regular user.
I need to know how to get my normal account the privliges to be able to halt or reboot.
See... this is the trouble with us newbies. It isn't just we don't know the answers... we don't even know the questions! Then someone gives a reply like this and we walk away, shaking our heads, and re-boot into Windoze...
Apt is a package management tool that will handle installing software. It handles dependency issues where the package you're loading has other packages as prerequisites.
See http://www.debian.org/doc/manuals/ap.../index.en.html
sudo (superuser-do) is a terminal command that allows priviledged users to run commands as if they were root. In your case "sudo halt" or "sudo reboot", if you've added yourself to the sudo user group.
See www.courtesan.com/sudo/intro.html.
In Fedora Core and RHEL there is a "halt" under /usr/bin directory which can be invoked directly with your "alex" user account, this is something much alike the one using "sudo" -- it uses "userhelper"(which is used to run a superuser command with normal account) -- I don't know whether slackware has this command. But I guess there must be a superuser's "halt" under /sbin.
I'm not familiar with KDE. Anyway, in Gnome's main menu, when invoke the Log Out button, you get some options like "Log out", "Reboot", "Shutdown", choose "Reboot" will take you directly rebooting your machine and not the text terminal which you typed "startx". I have experimented this with my machine.
If KDE has not the Log Out menu button, then you have to do with the "sudo" way (because it is probably that you don't have userhelper installed, and sudo is much more popuplar -- I guess).
somebody once mentioned a file called shutdown.allow that you can put somwhere to use halt (which is rewaly a symlink for shutdown -h now)
or any otehr shutdown command such as -r
if anyone knwo this i am looking to doi this too!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.