DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Security

OpenBSD Security Functionally paranoid!

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 21st July 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default /etc/rc.d/cron : need root privileges ... unexpected operator/operand

Hi everybody !

It's a 5.1 release box .. I recall the last thing I had done before last shutdown was an extraction of src.tar.gz to /usr .. On reboot I got this :

Code:
Starting local daemons : Abort trap
/etc/rc.d/cron : need root privileges 
/etc/rc.d subr [164]: [:0: unexpected operator/operand
init : can't exec getty /usr/libexec/getty for port /dev/ttyc0:
Is a directory
I can't login as it keeps reiterating the last line with variations and Ctrl-C doesn't work.

(more hints : I haven't yet applied the security fix for 5.1 .. I was using amule )
Reply With Quote
  #2   (View Single Post)  
Old 21st July 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

You should not have unpacked the source into /usr, but into /usr/src.

Boot into single user mode (-s at the boot> prompt), mount -a, and then inspect your system for the damage you have done. Then repair or recover from backup.

Remember how many time times I recommended regular backups?
Reply With Quote
  #3   (View Single Post)  
Old 21st July 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Thank you @jggimi !!
I do remember :-)
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DragonflyBSD: unexpected pkg_admin running. colonelmooch Other BSD and UNIX/UNIX-like 0 4th August 2011 04:26 PM
Am I blind? syntax error: `(' unexpected guitarscn Programming 1 10th November 2010 08:53 PM
Vulnerability in Oracle 11gR2 allows system privileges for all J65nko News 0 5th February 2010 04:12 PM
Dos batch file administrator privileges required a6zj6 Other OS 1 12th June 2009 02:02 PM
Unexpected Change of owner:group in file system Dotiroygsbre Other BSD and UNIX/UNIX-like 0 15th August 2008 04:09 PM


All times are GMT. The time now is 04:21 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick