PDA

View Full Version : root privileage



vijirin
08-08-2005, 03:12 PM
Hi guys,
I just remastered knoppix and added my application into the Knoppix image and created a bootable cd.
There are two things i want to be done.
1. For my applications to run it needs root privileage, coz it access certain files in the proc filesystem. So each time i have to run the application from the terminal i have to 'su'. Is there any way by which i can create a knoppix image with default root privileage.

2. I have added the application in the root directory , so to run the application i have to browse to root directory to run the application. Is there any way to add the application to the desktop and to the Knoppix menu.

The program was developed using QT designer, I just added the executable file.

Plz help
thanks in advance

viji.r

jjmac
08-14-2005, 11:47 PM
chmod 4755 <file_name>

Should set the SUID bit to "root" if the file ownership is root.root.

chmod 2755 <file_name> should set the SGID bit ...

SUID ... Set Root ID
SGID ... Set Group ID.

There isn't much effort in just going

$] su
<pass woed>
#]

And does maintain a certain degree of security ...



jm