Find the answer to your Linux question:
Results 1 to 3 of 3
I'm having some difficulty running a program that is suppose to initialize my hardware. This driver was installed as root and when a user calls the initialize function from a ...
  1. #1
    Just Joined!
    Join Date
    Aug 2007
    Posts
    33

    Linux file permissions problems

    I'm having some difficulty running a program that is suppose to initialize my hardware. This driver was installed as root and when a user calls the initialize function from a user account, the program is able to run but, when this program calls the executable /sbin/insmod I get the following error:

    insmod: "error inserting 'filename' " - Operation not permitted

    But, when I run the same program as a root everything works fine.

    What do I need to change to fix the problem?

  2. #2
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,422
    write down the current rights on /sbin/insmod
    then give 777 rights to insmod

    Chck out if it works now.

    If so, Change rights to 620 (I hope I am right here).
    If not, Change back to what you wrote down.
    New Users, please read this..
    Google first, then ask..

  3. #3
    Linux User
    Join Date
    Jun 2007
    Posts
    318
    If the program works from root then the program has to be set to run as root. Make sure the owner of /sbin/insmod is root and then set permissions to 4755.

    When you look at the file you should see:

    # ls -l /sbin/insmod
    -rwsr-xr-x 1 root root 7092 Mar 22 2007 /sbin/insmod

Posting Permissions

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