How to enable ifconfig to unprivileged user?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to enable ifconfig to unprivileged user?
# 1  
Old 09-08-2003
How to enable ifconfig to unprivileged user?

Hello, everyone. I have installed Red Hat 9.0 and Mandrake 9.1 on my computer. I could use a unprivileged user account to run "ifconfig" directly. But when I was using Red Hat, either root or other accounts could run "ifconfig" --- the error messege said: "bash: ifconfig: command not found". I tried "whereis ifconfig" and found it in /sbin/ifconfig. I could run /sbin/ifconfig, but not "ifconfig" directly from terminal. Why is that? Can I modify it, and how?

Thanx.
# 2  
Old 09-08-2003
You would have to add /sbin to your PATH.

Check your shell setup files (.profile, .kshrc, .cshrc, .login - fixing the ones for your shell).
# 3  
Old 09-08-2003
Thanx RTM. And how do I setup sbin, just mkdir? And how can I check those files? I didn't find them.
# 4  
Old 09-08-2003
He means add "/sbin" to the PATH environment variable.

You may do this in the user's startup files, like .bashrc. Try to add into it the line

export PATH=$PATH:/sbin

if you are using bash (should be default in RHL).
# 5  
Old 09-09-2003
Got it. Thanx RTM and cbkihong ! Smilie Smilie Smilie
# 6  
Old 09-09-2003
root's PATH should already have /sbin by default. If you became su by just typing su and root passwd, then the root environment may not get read. You may try "su -" and root passwd. Then try ifconfig.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Grant unprivileged user rights to see the output of echo|format but not modify disks

anyone have any idea how do to this with auth_attr? I suspect if I grant him solaris.device.:RO::Device Allocation::help=DevAllocHeader.html that will work but I'm unsure. Just looking for a second opinion. (10 Replies)
Discussion started by: os2mac
10 Replies

2. Solaris

Enable FTP for root user in Solaris 10

I am not able to get ftp working for Solaris 10 for root user. I am getting login failed error. 331 Password required for root. Password: 530 Login incorrect. Login failed. Tried following things already. 1. SFTP works ok, still would like to know why FTP is not working (curious). 2.... (5 Replies)
Discussion started by: webkid
5 Replies

3. Ubuntu

How to enable guest user in ubuntu 10.04

Hi, do you know how to enable guest user in ubuntu lucid 10.04 ? Regards (1 Reply)
Discussion started by: dagigg
1 Replies

4. UNIX for Advanced & Expert Users

To enable sqlplus for a user in unix

Hi I added a new user using root... now i need to enable sqlplus for that particular user... when i give sqlplus schemaname/pwd it gives $ sqlplus -bash: sqlplus: command not found PFB the OS am using $ uname -a Linux gs-portal-04 2.4.21-57.ELsmp #1 SMP Wed Apr 23... (4 Replies)
Discussion started by: Whiteboard
4 Replies

5. UNIX for Dummies Questions & Answers

Enable user quota

hi! i would like to enable user quota on my system (FreeBSD 6.2) i've check on enabling user quota here but i still confuse with fstab it shows there: /dev/da1s2g /home ufs rw,userquota 1 2 but my current /etc/fstab : # Device Mountpoint FStype Options ... (1 Reply)
Discussion started by: rdns
1 Replies

6. UNIX for Dummies Questions & Answers

regular user - enable printer - aix unix

how can I let a regular user enable a printer? (0 Replies)
Discussion started by: naes
0 Replies

7. Linux

How to Enable TELNET for root user

How to Enable TELNET for root user in Linux. (3 Replies)
Discussion started by: sakthi_13
3 Replies

8. UNIX for Dummies Questions & Answers

filesystem monitor, for unprivileged user

how can i, ordinary, not a privileged user, monitor my part of filesystem ($HOME dir), to see (at least in log) when and which files was created/deleted/moved ? (I heard something abound "sandbox", but i don`t need to restrict applications, i just want to log its actions) p.s. my system is... (0 Replies)
Discussion started by: variety
0 Replies

9. UNIX for Dummies Questions & Answers

enable a user via remsh

hi guys, has anybody a solution to enable a user via remsh (in a script)? i know only this: remsh $i /usr/bin/passwd -r files -d USERNAME but on this option the user must enter a new passwd. is it possible to set the passwd in the string or in a file and set a parameter into the... (1 Reply)
Discussion started by: scottl
1 Replies
Login or Register to Ask a Question