Re: Shutting down as user

2006-11-16 Thread Henry Lenzi

On 11/16/06, Parv <[EMAIL PROTECTED]> wrote:

in message <[EMAIL PROTECTED]>,
wrote Rem P Roberti thusly...
>
> I just installed 6.1 on an old laptop, and I am unable to shutdown
> as user.  I get a "permission denied" error message.

Other than already proposed solution, given that you are the only
person sitting near the machine & working power management, a press
of the power button should cleanly shut down the computer.


Yes, if you have acpi enabled, you can do that.
Otherwise, the OP may consider editing a sudoer list.

Regs
Henry
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Shutting down as user

2006-11-15 Thread Wood, Russell
I didn't the proposed solution so if it's the same, I apologize. You
could always add the user to the Operators group, which would then grant
them permissions to shutdown/reboot.

Regards,
Russell

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Parv
Sent: Thursday, 16 November 2006 1:02 PM
To: Rem P Roberti
Cc: FreeBSD
Subject: Re: Shutting down as user

in message <[EMAIL PROTECTED]>,
wrote Rem P Roberti thusly...
>
> I just installed 6.1 on an old laptop, and I am unable to shutdown
> as user.  I get a "permission denied" error message.

Other than already proposed solution, given that you are the only
person sitting near the machine & working power management, a press
of the power button should cleanly shut down the computer.

At least that is what happens on/with FreeBSD 6.x, with ACPI
enabled, on my IBM Thinkpad T42 when I am feeling lazy enough to
avoid typing "shutdown -p now".


  - Parv

-- 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"[EMAIL PROTECTED]"


DISCLAIMER:
Disclaimer.  This e-mail is private and confidential. If you are not the 
intended recipient, please advise us by return e-mail immediately, and delete 
the e-mail and any attachments without using or disclosing the contents in any 
way. The views expressed in this e-mail are those of the author, and do not 
represent those of this company unless this is clearly indicated. You should 
scan this e-mail and any attachments for viruses. This company accepts no 
liability for any direct or indirect damage or loss resulting from the use of 
any attachments to this e-mail.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Shutting down as user

2006-11-15 Thread Parv
in message <[EMAIL PROTECTED]>,
wrote Rem P Roberti thusly...
>
> I just installed 6.1 on an old laptop, and I am unable to shutdown
> as user.  I get a "permission denied" error message.

Other than already proposed solution, given that you are the only
person sitting near the machine & working power management, a press
of the power button should cleanly shut down the computer.

At least that is what happens on/with FreeBSD 6.x, with ACPI
enabled, on my IBM Thinkpad T42 when I am feeling lazy enough to
avoid typing "shutdown -p now".


  - Parv

-- 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Shutting down as user

2006-11-13 Thread David Kelly
On Mon, Nov 13, 2006 at 10:11:11AM -0800, Rem P Roberti wrote:
> >
> >Add yourself to the "operator" group. Just edit /etc/group.
> >
> >  
> Bingo!

Haven't checked recently but in the past any darn fool could
Control-Alt-Delete reboot from the console keyboard. Caused a bit of a
pain when a machine reboots as Microsoft has been teaching their uses
that this is now the login keystroke sequence.

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Shutting down as user

2006-11-13 Thread Rem P Roberti



On Mon, Nov 13, 2006 at 09:03:28AM -0800, Rem P Roberti wrote:
  
Hi everyone.  I just installed 6.1 on an old laptop, and I am unable to 
shutdown as user.  I get a "permission denied" error message.  I know 
that this is probably some simple permission's thing, as I don't have 
that problem on my desktop, but I'm pretty new to all of this and would 
appreciate a heads up on how to shut down as user.  Thanks.



Add yourself to the "operator" group. Just edit /etc/group.

  




I knew that the solution was a simple one, I just couldn't remember what 
it was.  Thanks, David.


Rem
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Shutting down as user

2006-11-13 Thread Rem P Roberti



On Mon, Nov 13, 2006 at 09:03:28AM -0800, Rem P Roberti wrote:
  
Hi everyone.  I just installed 6.1 on an old laptop, and I am unable to 
shutdown as user.  I get a "permission denied" error message.  I know 
that this is probably some simple permission's thing, as I don't have 
that problem on my desktop, but I'm pretty new to all of this and would 
appreciate a heads up on how to shut down as user.  Thanks.



Add yourself to the "operator" group. Just edit /etc/group.

  

Bingo!

Rem
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Shutting down as user

2006-11-13 Thread Rem P Roberti



On Mon, Nov 13, 2006 at 09:03:28AM -0800, Rem P Roberti wrote:

  
Hi everyone.  I just installed 6.1 on an old laptop, and I am unable to 
shutdown as user.  I get a "permission denied" error message.  I know 
that this is probably some simple permission's thing, as I don't have 
that problem on my desktop, but I'm pretty new to all of this and would 
appreciate a heads up on how to shut down as user.  Thanks.



In some way or other, shutdown must be done by root, or possibly by
someone in the operator group.

You can log in as root -- for which you will need the root password
You can 'su' to root from a regular account -- for which you will need
 the root password AND be in the wheel group.
You can create an alkternate root account (recommended) and log in as
 that id or su to it -- which requires creating the account
 with password.
You can put your account in the operator group -- 
You can install and set up 'sudo' to do the shutdown and allow your id

 access to it.

All of these ways require you to have root access to set them up.
They can also be done in 'single user' mode which runs with root priviledge.

All of this is well covered in the handbool and other documentation.

jerry

  


Right.  I now remember that putting the account in the operator group 
was probably how I achieved the affect on the desktop.  I'll check that 
out, and check the handbook.


Rem
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Shutting down as user

2006-11-13 Thread Joe Holden

Rem P Roberti wrote:

That is very true, and I understand why this is by design, but in this 
case the ONLY user of the machine is me.  It really is no big deal, but 
I am trying to understand just what is going on here.  As I said, on my 
desktop I am able to shut down as user, and can't remember how I set it 
up so that occurs.  Back to the handbook!


Do you have (as was mentioned) the shutdown script setuid or something?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Shutting down as user

2006-11-13 Thread Rem P Roberti

Joe Holden wrote:

Rem P Roberti wrote:

I'm using the KDE window manager, but don't see how this would effect 
anything, as I am not able to shut down as user from the console.


This is the intended behaviour, you wouldn't want just anyone to 
shutdown your machines would you? ;)


That is very true, and I understand why this is by design, but in this 
case the ONLY user of the machine is me.  It really is no big deal, but 
I am trying to understand just what is going on here.  As I said, on my 
desktop I am able to shut down as user, and can't remember how I set it 
up so that occurs.  Back to the handbook!


Rem
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Shutting down as user

2006-11-13 Thread David Kelly
On Mon, Nov 13, 2006 at 09:03:28AM -0800, Rem P Roberti wrote:
> Hi everyone.  I just installed 6.1 on an old laptop, and I am unable to 
> shutdown as user.  I get a "permission denied" error message.  I know 
> that this is probably some simple permission's thing, as I don't have 
> that problem on my desktop, but I'm pretty new to all of this and would 
> appreciate a heads up on how to shut down as user.  Thanks.

Add yourself to the "operator" group. Just edit /etc/group.

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Shutting down as user

2006-11-13 Thread Joe Holden

Rem P Roberti wrote:

I'm using the KDE window manager, but don't see how this would effect 
anything, as I am not able to shut down as user from the console.


This is the intended behaviour, you wouldn't want just anyone to 
shutdown your machines would you? ;)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Shutting down as user

2006-11-13 Thread Jerry McAllister
On Mon, Nov 13, 2006 at 09:03:28AM -0800, Rem P Roberti wrote:

> Hi everyone.  I just installed 6.1 on an old laptop, and I am unable to 
> shutdown as user.  I get a "permission denied" error message.  I know 
> that this is probably some simple permission's thing, as I don't have 
> that problem on my desktop, but I'm pretty new to all of this and would 
> appreciate a heads up on how to shut down as user.  Thanks.

In some way or other, shutdown must be done by root, or possibly by
someone in the operator group.

You can log in as root -- for which you will need the root password
You can 'su' to root from a regular account -- for which you will need
 the root password AND be in the wheel group.
You can create an alkternate root account (recommended) and log in as
 that id or su to it -- which requires creating the account
 with password.
You can put your account in the operator group -- 
You can install and set up 'sudo' to do the shutdown and allow your id
 access to it.

All of these ways require you to have root access to set them up.
They can also be done in 'single user' mode which runs with root priviledge.

All of this is well covered in the handbool and other documentation.

jerry

> 
> Rem
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Shutting down as user

2006-11-13 Thread Rem P Roberti



Hi everyone.  I just installed 6.1 on an old laptop, and I am unable to
shutdown as user.  I get a "permission denied" error message.


Whatever is shutting down the system would either need to be setuid
(chmod u+s), or would need to use sudo (if you have the sudo port and
your user is properly setup in sudoers to issue the shutdown command
or whatever is running).

Some details on which window manager or desktop environment you are
running would help, along with whether or not you are running a
display manager (GDM, KDM, XDM, etc).

Josh



I'm using the KDE window manager, but don't see how this would effect 
anything, as I am not able to shut down as user from the console.


Rem
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Shutting down as user

2006-11-13 Thread Josh Carroll

Hi everyone.  I just installed 6.1 on an old laptop, and I am unable to
shutdown as user.  I get a "permission denied" error message.


Whatever is shutting down the system would either need to be setuid
(chmod u+s), or would need to use sudo (if you have the sudo port and
your user is properly setup in sudoers to issue the shutdown command
or whatever is running).

Some details on which window manager or desktop environment you are
running would help, along with whether or not you are running a
display manager (GDM, KDM, XDM, etc).

Josh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"