Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > can't sudo!

can't sudo!
Thread Tools
Professional Poster
Join Date: Feb 2002
Location: adequate, thanks.
Status: Offline
Reply With Quote
Aug 2, 2004, 08:30 PM
 
When I want to execute a terminal command like "sudo periodic weekly" the terminal says after entering the password:

aw is not in the sudoers file. This incident will be reported.

How can I get my user "aw" into that file? reading "man sudo" didn't solve my problem.
     
Admin Emeritus
Join Date: Oct 1999
Location: Zurich, Switzerland
Status: Offline
Reply With Quote
Aug 2, 2004, 09:15 PM
 
Only admin users can sudo.

tooki
     
Mac Elite
Join Date: Mar 2001
Location: Provo, UT
Status: Offline
Reply With Quote
Aug 3, 2004, 06:52 PM
 
You have to edit /etc/sudoers. As the prior person said, by default on OSX all administrators are given sudo permission. For more info type man sudo at the terminal.
     
Grizzled Veteran
Join Date: Jan 2003
Location: The midwest...
Status: Offline
Reply With Quote
Aug 3, 2004, 07:10 PM
 
in solaris you do a sudo su -

maybe this helps, but probably not. make sure if you edit sudoers that you back it up first....
Joe
     
Grizzled Veteran
Join Date: Jun 2002
Status: Offline
Reply With Quote
Aug 3, 2004, 08:24 PM
 
also, i know this hasn't been mentioned, but you must have the BSD Subsytem installed in order to do almost all unix commands. You can install from CD 1 or panther (i believe). As well as without installing all over again.
     
Mac Elite
Join Date: Mar 2001
Location: Provo, UT
Status: Offline
Reply With Quote
Aug 3, 2004, 09:22 PM
 
Is that right? Since so many programs now depend upon BSD stuff, I don't think that is right. I think the BSD stuff is always installed. Are you perhaps confusing it with the UFS file system or the developer tools? Some things do require the developer tools (which I think everyone ought to install "just in case"). However I think sudo is in all systems.

Of course I may be an idiot and be completely wrong. But I'm pretty sure.
     
Grizzled Veteran
Join Date: Nov 2003
Location: Hebburn, UK
Status: Offline
Reply With Quote
Aug 4, 2004, 05:29 AM
 
Originally posted by clarkgoble:
Is that right? Since so many programs now depend upon BSD stuff, I don't think that is right. I think the BSD stuff is always installed. Are you perhaps confusing it with the UFS file system or the developer tools? Some things do require the developer tools (which I think everyone ought to install "just in case"). However I think sudo is in all systems.

Of course I may be an idiot and be completely wrong. But I'm pretty sure.
You can choose when you install Panther whether or not to install 'BSD Subsystem'. I'm not sure if it's checked by default or not though, since it's been ages since I installed Panther.
Just who are Britain? What do they? Who is them? And why?

Formerly Black Book
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Aug 4, 2004, 09:26 AM
 
You need to be an "admin". Is there another user on the system that created your account? If so, get them to change your account to an administration account in the "Security" tab of Accounts in System Preferences.



That's the non-unix answer.
(Last edited by [APi]TheMan; Aug 4, 2004 at 09:33 AM. )
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Mac Elite
Join Date: Mar 2001
Location: Provo, UT
Status: Offline
Reply With Quote
Aug 4, 2004, 01:37 PM
 
Originally posted by Black Book:
You can choose when you install Panther whether or not to install 'BSD Subsystem'. I'm not sure if it's checked by default or not though, since it's been ages since I installed Panther.
Right. I guess what I was saying was that I don't think this deals with the stuff in /usr/bin or /sbin or so forth. Rather it deals wiht UFS file systems.
     
Senior User
Join Date: Apr 2002
Status: Offline
Reply With Quote
Aug 4, 2004, 10:18 PM
 
Originally posted by clarkgoble:
Right. I guess what I was saying was that I don't think this deals with the stuff in /usr/bin or /sbin or so forth. Rather it deals wiht UFS file systems.
The BSD subsystem is the stuff in /usr/bin and /usr/sbin. It has nothing to do with UFS.
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Aug 5, 2004, 06:39 AM
 
Originally posted by ChrisF:
The BSD subsystem is the stuff in /usr/bin and /usr/sbin. It has nothing to do with UFS.
Well, it's most of the stuff in /usr.

BSD.pkg
9443
BaseSystem.pkg
211
Essentials.pkg
2737
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:27 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2