Find the answer to your Linux question:
Results 1 to 4 of 4
there are a lot of commands that root can run however my user account can't, of these are fdisk modprobe ipconfig and etc I was just wondering how I can ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    11

    FC6: Command Problems


    there are a lot of commands that root can run however my user account can't, of these are

    fdisk
    modprobe
    ipconfig
    and etc

    I was just wondering how I can get these to working in the user account...

  2. #2
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    These commands can't be run because they mostly (ipconfig is windows, ifconfig is nix) reside in /sbin. /sbin is probably not in your regular user's profile. To make sure it is, edit your ~/.bash_profile file to include /sbin in the path. You still won't be able to run fdisk or anything like that, because the things that fdisk does require root permission. You'd use sudo to accomplish this.

  3. #3
    Just Joined!
    Join Date
    Nov 2006
    Posts
    11
    about the profile, I vi'ed it but I'm not sure of the right way to edit it. Should i just replace bin with sbin or should I add this line PATH=$PATH:$HOME/sbin also I've tried sudo and it doesn't work I still get the command not found error when I sudo fdisk

  4. #4
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    Get rid of $HOME. /sbin is off of /.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •