About
Community
Bad Ideas
Drugs
Ego
Erotica
Fringe
Society
Technology
register | bbs | search | rss | faq | about
meet up | add to del.icio.us | digg it
Go Back   Community > Technology > Everything *NIX
Register FAQ Members List Calendar Today's Posts

Everything *NIX This is a general forum about all forms of *nix. Post your ideas and thoughts on this wonderful OS family. Talk about your personal favorite flavor of *nix and why you think it's so much better than the others. Anything pertaining to *nix and *nix administration should be posted here.

Reply
 
Thread Tools Display Modes
  #1   Add Auschwitz - Nazi Disneyland to your ignore list  
Old 2008-03-10, 02:00
Auschwitz - Nazi Disneyland Auschwitz - Nazi Disneyland is offline
Regular
 
TSKFS
Default OpenBSD 4.2 - Can only run an app as user

As the title implies, I've got an application here that I can't run as root. I'm pretty new to *nix in general, but I've put aside a harddrive to give OpenBSD a go.

I've installed wpa_supplicant through the packages (binary tree/pkg_add) and when run as a user, I don't have the priveleges to access the wireless card. SU to root, and the system can't find the wpa_supplicant executable. I've installed a fair few things already, and this is the first time I've seen this. I googled it, but no luck.

Thanks to anyone who can even point me in the right direction.
Reply With Quote
  #2   Add Prometheum to your ignore list  
Old 2008-03-10, 20:06
Prometheum Prometheum is offline
Regular
 
01 Send a message via AIM to Prometheum Send a message via MSN to Prometheum
Default Re: OpenBSD 4.2 - Can only run an app as user

OpenBSD is pretty much the worst place to start using unix at. I would recommend FreeBSD first while you get a feel for stuff, and when you're ready, upgrade to OpenBSD.
Reply With Quote
  #3   Add Auschwitz - Nazi Disneyland to your ignore list  
Old 2008-03-15, 15:53
Auschwitz - Nazi Disneyland Auschwitz - Nazi Disneyland is offline
Regular
 
TSKFS
Default Re: OpenBSD 4.2 - Can only run an app as user

Yeah, I've heard the same a fair bit, but I have tried FreeBSD a little in the past and OpenBSD appeals to me more. I don't care that it's difficult as I have a Win drive here if I REALLY need to do anything, but I've got almost everything I need 'working' regardless and I'm now trying to get into the mechanics of the system.


That said, I've got a bit more detail on the problem - I've found the executable and added the PATH into both root and my main user's .profile file, and it works fine if I log in as either user - the problem comes up when I su though, because when I echo $PATH it doesn't return all of the items.

In short: if I su to root, my PATH variable doesn't contain all of the locations defined in the .profile file - any ideas?
Reply With Quote
  #4   Add oddballz194 to your ignore list  
Old 2008-03-15, 18:50
oddballz194 oddballz194 is offline
Super Moderator
 
In a nuclear crater
Default Re: OpenBSD 4.2 - Can only run an app as user

Quote:
Originally Posted by Auschwitz - Nazi Disneyland View Post
Yeah, I've heard the same a fair bit, but I have tried FreeBSD a little in the past and OpenBSD appeals to me more. I don't care that it's difficult as I have a Win drive here if I REALLY need to do anything, but I've got almost everything I need 'working' regardless and I'm now trying to get into the mechanics of the system.


That said, I've got a bit more detail on the problem - I've found the executable and added the PATH into both root and my main user's .profile file, and it works fine if I log in as either user - the problem comes up when I su though, because when I echo $PATH it doesn't return all of the items.

In short: if I su to root, my PATH variable doesn't contain all of the locations defined in the .profile file - any ideas?
There's probably another profile used for su-type logins. I know bash uses .bashrc as well as .bash_profile, and normally only one of those is run when you use su whereas both are run if you log in normally (though I don't remember which offhand).

You could always use the source command to run the login script though, as follows (assuming the .profile is in your home directory):

source ~/.profile
Reply With Quote
Reply


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

 
To the best of our knowledge, the text on this page may be freely reproduced and distributed.
 

totse.com certificate signatures
 
 
About | Community | Bad Ideas | Drugs | Ego | Erotica | Fringe | Society | Technology
Hot Topics