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 07-18-2004, 12:23 PM   #1
Nihongoga
LQ Newbie
 
Registered: Jul 2004
Distribution: Slack 10
Posts: 18

Rep: Reputation: 0
Power Management and Permissions


Does anyone know how to make the computer really shutdown when I write run the shutdown or halt command.
Now it just unmount everything and then says Power Off....it must be a way to let the Linux system turn of the power to the computer??

How do I set up permission for users? Now only root can access the mounted partitions. I would like my users to almost have the same permission as root how do I do that? (not by typing su in the prompt everytime)
It is the same with the shutdown commands (only root can run these commands)...there has to be a way to change that?

Please help me.
 
Old 07-18-2004, 02:22 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
The shutdown functionality depends on the power-saving
functionality. If your machine doesn't power off on halt check
whether apmd or acpid are running. If the machine is an
SMP-box power-off won't work, because in an SMP environment
the kernel will disable apm.

The permission(s) to shutdown/reboot the machine are
best granted by editing the file /etc/sudoer and give
permissions to run those two to everyone.

Quote:
Now only root can access the mounted partitions. I
would like my users to almost have the same permission as
root how do I do that? (not by typing su in the prompt everytime)
I don't quite understand what you mean here ... are you
trying to get access to a FAT or NTFS partition? Otherwise
what you're saying wouldn't make any sense.


Cheers,
Tink
 
Old 07-18-2004, 06:34 PM   #3
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
if u want make the computer to really shutdown when u write run the shutdown or halt command just open /etc/rc.d and uncomment the line /sbin/modprobe apm
in :

#### APM support ###
# APM is a BIOS specification for saving power using several different
# techniques. This is mostly useful for battery powered laptops.
#/sbin/modprobe apm

then type modprobe apm then when u type shutdown -h now , it will turnoff ur pc

as for giving the users to access the mounted partition edit ur fstab to :

/dev/hda1 /mnt/win_c vfat auto,rw,umask=000 1 0

of course urs could be different but umask=000 makes it so that my regular users can use the partition

for more easy ways to setup slack check this site out :

http://shilo.is-a-geek.com/slack/
 
Old 07-19-2004, 10:34 AM   #4
Nihongoga
LQ Newbie
 
Registered: Jul 2004
Distribution: Slack 10
Posts: 18

Original Poster
Rep: Reputation: 0
Does not work

I tried to uncomment /sbin/modprob apm in the rc.module file in /etc/rd.d (I suppose that was the file you wrote about??)
And I ran the modprobe thing, but still i does not work =(
Windows XP always turn of the power at shut down so I got the right hardware, is there some more module I must run?

-Yes it is a ntfs partition I try to access, and I am using captive-ntfs...hower it seems that this driver does not automatically load at the startup, which I think is very strange when the captive-ntfs installprogram changed my fstab to:

/dev/hda7 swap swap defaults 0 0
/dev/hda6 / ext3 defaults 1 1
/dev/hdb6 /g vfat defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
/dev/hdb5 /mnt/f captive-ntfs defaults,noauto 0 0
/dev/hda5 /mnt/d captive-ntfs defaults,noauto 0 0
/dev/hdb1 /mnt/e captive-ntfs defaults,noauto 0 0
/dev/hda1 /mnt/c captive-ntfs defaults,noauto 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

I will try the sudoer thing now...I am glad for all help I can get =)
Thank you
 
  


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
Power Management demo_worx Fedora 4 06-24-2005 04:24 PM
C and power management in 2.6... Elric of Grans Programming 1 05-04-2005 11:26 AM
Enabling power save/power management/cpu freq scaling features for a Debian system zero79 Debian 0 12-19-2004 01:17 PM
Power Management(sysfs) /sys/power/state mavrick613 Linux - General 0 05-24-2004 03:04 PM
Power management raypen Slackware 4 04-27-2003 11:57 AM


All times are GMT -5. The time now is 01:24 PM.

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