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.
I have to second the sudo approach. It is much safer than having to login as root.
Security is not really an issue for this particular machine (however I do understand the need for it in a corporate / business environment). It is my personal box, and my roommates have no clue what a CLI is, much less how to use one.
I was under the impression that halting a machine simply shut down all of the processes, and essentially 'locked' the box, but didnt actually kill the power (which is what I was trying to accomplish with "shutdown -h now")
I tried halt several times, and when it said the machine was down (I have forgotten the actual terms CLI used) and I then manually killed the power, upon the next reboot I had to run fsck because "the power had been interrupted" and it thought that the disks were not cleanly unmounted.
Thank you everyone for your input. I'm learning. Slowly, and painfully, but still learning :-)
Also with sudo you can set users up to be able to use command without having to enter a password, which is very inconvenient when shutting down the machine. For example:
Code:
Defaults env_reset
# Uncomment to allow members of group sudo to not need a password
# %sudo ALL=NOPASSWD: ALL
# Host alias specification
# User alias specification
User_Alias OWNER = username
# Cmnd alias specification
Cmnd_Alias SHUTDOWNALLOWED = /sbin/shutdown, /sbin/reboot, /usr/sbin/xfsm-shutdown-helper
# User privilege specification
root ALL=(ALL) ALL
OWNER ALL=ALL
OWNER ALL=NOPASSWD: SHUTDOWNALLOWED
I set myself as OWNER, the commands shutdown, reboot, and xfsm-shutdown-helper (which is for XFCE) as SHUTDOWNALLOWED, then tell sudo I can shutdown the computer without a password, while all other commands require one. It is very handy.
This is often desirable for me too. You might want to look at the page http://www.linuxquestions.org or check out the book "Linux Quick Fix Notebook" from your local library. This tells what sudoers commands mean. It also tells some other useful stuff about Linux for someone trying to use it securely for the first time.
on my slack ware i can do a logout and the kdm asks if I want to shut down or reboot from user. if I do not use kdm then xdm gives me the same options. or you can as a user push the control alt back buttons that turns off the xserver then tell them to push control alt delete.
there is a place in the kde control center to configure so you can boot striate to the the strait to the kdm login then the user login then he can logout and turn the computer of from the kdm option.
If you are running Slackware I suggest that you edit the runlevel in /etc/inittab.
Slackware defaults to multiuser non graphical mode which means you log on to X with startx If you change to the multiuser graphical mode (Ithink this means going from 3 to 4 or vice versa) you will boot into X and be able to close down from X.
If you are running Slackware I suggest that you edit the runlevel in /etc/inittab.
Slackware defaults to multiuser non graphical mode which means you log on to X with startx If you change to the multiuser graphical mode (Ithink this means going from 3 to 4 or vice versa) you will boot into X and be able to close down from X.
so by editing the /etc/inittab, i can have the computer boot into X instead of CLI? Interesting. When I get home from work I'll have to check that out.
And I'll be able to shut down from X as well? (a 'shutdown' button as well as the normal 'log off' button)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.