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 ...
- 11-27-2007 #1Just 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?
- 11-28-2007 #2
- 11-28-2007 #3Linux 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


Reply With Quote