Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Run commands as regular user

 
   Soft32 Home -> Linux -> General Discussions RSS
Next:  Console session like Windows 2003 or XP  
Author Message
Tadik

External


Since: Oct 22, 2006
Posts: 25



(Msg. 1) Posted: Sun Oct 22, 2006 12:30 pm
Post subject: Run commands as regular user
Archived from groups: alt>comp>linux, others (more info?)

As a new Linux user I have have been running everything as Admin (I know -
BAD). Anyhow, as a 'normal' user now, I can not run commands such as
ifconfig, etc. As a normal user, I 'su' and am running a root temporarily,
but as root on the console in Gnome, I still can not run ifconfig or other
administrative commands. I know it has something to do with being logged in
a a normal user. Although I am root in console (via SU), how can I run
these commands? Do I need to add paths or something to get this to work?

Thank you.
Back to top
Login to vote
Bit Twister

External


Since: Dec 18, 2004
Posts: 151



(Msg. 2) Posted: Sun Oct 22, 2006 12:30 pm
Post subject: Re: Run commands as regular user [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sun, 22 Oct 2006 17:30:08 GMT, Tadik wrote:
> As a new Linux user I have have been running everything as Admin (I know -
> BAD). Anyhow, as a 'normal' user now, I can not run commands such as
> ifconfig, etc.
> Although I am root in console (via SU), how can I run
> these commands? Do I need to add paths or something to get this to work?

guessing you are doing a su root instead of su - root
Back to top
Login to vote
ray

External


Since: May 19, 2006
Posts: 1



(Msg. 3) Posted: Sun Oct 22, 2006 12:30 pm
Post subject: Re: Run commands as regular user [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sun, 22 Oct 2006 17:30:08 +0000, Tadik wrote:

> As a new Linux user I have have been running everything as Admin (I know -
> BAD). Anyhow, as a 'normal' user now, I can not run commands such as
> ifconfig, etc. As a normal user, I 'su' and am running a root temporarily,
> but as root on the console in Gnome, I still can not run ifconfig or other
> administrative commands. I know it has something to do with being logged in
> a a normal user. Although I am root in console (via SU), how can I run
> these commands? Do I need to add paths or something to get this to work?
>
> Thank you.

sudo
Back to top
Login to vote
Mark

External


Since: Oct 01, 2006
Posts: 1



(Msg. 4) Posted: Sun Oct 22, 2006 12:59 pm
Post subject: Re: Run commands as regular user [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Tadik wrote:

> As a new Linux user I have have been running everything as Admin (I know -
> BAD). Anyhow, as a 'normal' user now, I can not run commands such as
> ifconfig, etc. As a normal user, I 'su' and am running a root
> temporarily, but as root on the console in Gnome, I still can not run
> ifconfig or other
> administrative commands. I know it has something to do with being logged
> in
> a a normal user. Although I am root in console (via SU), how can I run
> these commands? Do I need to add paths or something to get this to work?
>
> Thank you.


ifconfig is in /sbin, so add /sbin to your path OR you can
just use the absolute path to the command. Since ifconfig is
in /sbin, you can run /sbin/ifconfig for example.

If you add "-" to the end of the su command, that will also
fix your problem with su in the Gnome console.

- tells su ("switch user") to load target user environment and
that includes its path setting. The username is optional,
if it doesn't exist, it assumes you mean root.

su - (no username, defaults to root, users roots environment)

su - someuser (username is someuser, uses 'someuser' environment)

su someuser (username is someuser but with no -, it inherits
environment of the caller)
Mark
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Send sms via regular modem?? - Does anyone knows how to send sms messages to cell phone via regular serial modem attached to centos4.3 x84_64?

IF commands - Hi Id made a shell script like: #!/bin/sh MY_VAR=5 if [ $MY_VAR >= 3 ]; then cp /root/test.txt /tmp fi exi...

Linux Commands - Dear Group, I found different documents where you can see compares between dos en Lunix. Which is very helpfull for..

rsync commands - Hello I want to set up rsync to download redhat updates. I get the error Connection refused rsync error: error in..

Re running commands - Hi can anybody tell me the command to prefix commands so they will re run. i.e. xxxx iostat will rerun iostat every x....

KDE and the commands... - Hello... I have a problem on kde. I have noticed that the commandos who are on /sbin/* do not work automatically and..
       Soft32 Home -> Linux -> General Discussions All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]