BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 16th, 2006, 05:26 PM
Shpiz Shpiz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 54 Shpiz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 54 m 28 sec
Reputation Power: 8
Exclamation ROOT ?! Or Not ROOT ?!!



Hello every one

I have a strange behavior here on my OpenBSD 4.7 box..
I am logging in root (Don't kill me !! just for this exemple), and when I try to run:
$ /etc/netstart
Then I get a " Permission denied " error ?!!
Did it happened to some of you and do someone know why it hapened?

Thanxx to all of you for any help ..

Cheers,
Shpiz

Reply With Quote
  #2  
Old January 17th, 2006, 05:37 AM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 20th Plane (14500 - 14999 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,817 jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 4 Days 7 h 14 m 56 sec
Reputation Power: 1098
What do the permissions look like when you:
Code:
ls -l /etc | grep netstart
__________________
# Jeremy

Explain your problem instead of asking how to do what you decided was the solution.

Reply With Quote
  #3  
Old January 19th, 2006, 04:33 AM
Shpiz Shpiz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 54 Shpiz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 54 m 28 sec
Reputation Power: 8
Yep I do not have the X attribute ... Why it has changed? I didn't touched anything....
and before I was just doing
# /etc/netstart
under root user
???

Reply With Quote
  #4  
Old January 19th, 2006, 10:18 AM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 20th Plane (14500 - 14999 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,817 jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 4 Days 7 h 14 m 56 sec
Reputation Power: 1098
Quote:
Why it has changed?
That I can't answer.

Reply With Quote
  #5  
Old January 20th, 2006, 06:31 PM
Ergo12 Ergo12 is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2005
Location: trolls only :)
Posts: 172 Ergo12 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 Day 20 h 5 m 11 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
You've done something wrong ... don't use root unless necessary. As you can see here /etc/netstart is used with other parameters. What are you ultimately trying to do?

Reply With Quote
  #6  
Old January 24th, 2006, 04:41 PM
edman007's Avatar
edman007 edman007 is offline
Trapped on the forums...help
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Aug 2003
Location: /Users/edman007
Posts: 4,617 edman007 User rank is Lieutenant General (80000 - 90000 Reputation Level)edman007 User rank is Lieutenant General (80000 - 90000 Reputation Level)edman007 User rank is Lieutenant General (80000 - 90000 Reputation Level)edman007 User rank is Lieutenant General (80000 - 90000 Reputation Level)edman007 User rank is Lieutenant General (80000 - 90000 Reputation Level)edman007 User rank is Lieutenant General (80000 - 90000 Reputation Level)edman007 User rank is Lieutenant General (80000 - 90000 Reputation Level)edman007 User rank is Lieutenant General (80000 - 90000 Reputation Level)edman007 User rank is Lieutenant General (80000 - 90000 Reputation Level)edman007 User rank is Lieutenant General (80000 - 90000 Reputation Level)edman007 User rank is Lieutenant General (80000 - 90000 Reputation Level)edman007 User rank is Lieutenant General (80000 - 90000 Reputation Level)edman007 User rank is Lieutenant General (80000 - 90000 Reputation Level)edman007 User rank is Lieutenant General (80000 - 90000 Reputation Level)edman007 User rank is Lieutenant General (80000 - 90000 Reputation Level)  Folding Points: 68775 Folding Title: Intermediate FolderFolding Points: 68775 Folding Title: Intermediate FolderFolding Points: 68775 Folding Title: Intermediate FolderFolding Points: 68775 Folding Title: Intermediate Folder
Time spent in forums: 1 Month 3 Weeks 3 Days 5 h 12 m 24 sec
Reputation Power: 904
Send a message via AIM to edman007
if the file is in /etc then i assume its some type of config file (that's what goes in /etc along with some start up scripts), by specifying just the path at the command prompt you are telling the system that you would like to to execute it, and executable files need to have the execute permission set, config files on the other hand should never be executed (it just ends in errors) so they normally will not have it set hence the permission denied

if you are sure that this file should be executable then "chmod a+x /etc/netstat" will allow it
__________________
Feed ME

Reply With Quote
  #7  
Old January 26th, 2006, 02:07 PM
Ergo12 Ergo12 is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2005
Location: trolls only :)
Posts: 172 Ergo12 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 Day 20 h 5 m 11 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
If you bothered to check the link i had posted, you will see its a standard BSD script. See the FAQ entry in the link provided.

Reply With Quote
  #8  
Old January 30th, 2006, 05:33 PM
Shpiz Shpiz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 54 Shpiz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 54 m 28 sec
Reputation Power: 8
Hi and thank you all for your help, It is really helping.
Effectivelly as Adman007 says the line "chmod a+x /etc/netstat" allowed it to work..

Now I am trying to understand why that happened and what could I have done wrong ..
Actually I am loging in as a normal user then use the SU command to get root access when needed for exemple when I want to vi pf.conf or run a pfctl , restart the network service (/etc/netstart), tcpdump ..
All those commad are not allowed under the normal user.. it sayes that the user is in the Wheel group and not allowed to it.
Tell me if you think I should change something on the way I am working ..
BTW No users other than I do login to this box.

Cheers everyone and thank you again for your help ..

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > ROOT ?! Or Not ROOT ?!!

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap