The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Operating Systems
> BSD Help
|
ROOT ?! Or Not ROOT ?!!
Discuss ROOT ?! Or Not ROOT ?!! in the BSD Help forum on Dev Shed. ROOT ?! Or Not ROOT ?!! BSD Help forum discussing all BSD based operating systems including FreeBSD, OpenBSD, NetBSD, and more. BSD refers to the distribution of UNIX originally developed by the University of California at Berkeley.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

January 16th, 2006, 05:26 PM
|
|
Contributing User
|
|
Join Date: Oct 2005
Posts: 54
Time spent in forums: 15 h 54 m 28 sec
Reputation Power: 8
|
|
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
|

January 17th, 2006, 05:37 AM
|
 |
mod_dev_shed
|
|
Join Date: Sep 2002
Location: Atlanta, GA
|
|
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.
|

January 19th, 2006, 04:33 AM
|
|
Contributing User
|
|
Join Date: Oct 2005
Posts: 54
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
???
|

January 19th, 2006, 10:18 AM
|
 |
mod_dev_shed
|
|
Join Date: Sep 2002
Location: Atlanta, GA
|
|
|

January 20th, 2006, 06:31 PM
|
|
Permanently Banned
|
|
Join Date: Dec 2005
Location: trolls only :)
Posts: 172
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?
|

January 24th, 2006, 04:41 PM
|
 |
Trapped on the forums...help
|
|
Join Date: Aug 2003
Location: /Users/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
|

January 26th, 2006, 02:07 PM
|
|
Permanently Banned
|
|
Join Date: Dec 2005
Location: trolls only :)
Posts: 172
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.
|

January 30th, 2006, 05:33 PM
|
|
Contributing User
|
|
Join Date: Oct 2005
Posts: 54
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 .. 
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|