Forums: Startup For Unprivledged User - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Startup For Unprivledged User

#1 User is offline   boshcash 

  • Master Sergeant
  • Icon
  • Group: Specialist
  • Posts: 461
  • Joined: 09-October 03

Posted 24 August 2005 - 02:57 PM

im not a pro @ *nix systems , but i wondered if there is a way to run something on system startup , and doing so by having access to unprivledged account like nobody account

If anyone has any info please tell me ,

thanks
0

#2 User is offline   rlastinger 

  • Sergeant
  • Icon
  • Group: Members
  • Posts: 218
  • Joined: 18-August 05

Posted 24 August 2005 - 03:22 PM

I'm not sure how to set it up with unprivileged users like you're referring to, but you can set run levels on the init script in init.d to start on boot with this command. Also, a previous co-worker has told me before that you can have the service tied to an unprivy user be modifying the init script with the username you want to own it, but I personally can't verify that it works because I've never attempted it.

The command to set the run levels which I think is what you're asking is

chkconfig --level 2345 <service> on

This should start the service on boot at least.

To check the runlevels of all the services in init.d

chkconfig --list

and if you're looking for a specific one

chkconfig --list | grep <service>


Hope this helps.
0

#3 User is offline   Dany_Mello 

  • Private
  • Icon
  • Group: Members
  • Posts: 4
  • Joined: 02-August 05

Posted 25 August 2005 - 12:59 AM

Hi,

Right, the init.d is the way to run a program on startup as say rlastinger.
The second part of you question is strange... To write or create file on the /etc/init.d directory, you must have a root access, so you cannot write on this directory which a other users as root !

Solution : Get root :P

Hope this help too :)

dany.
0

#4 User is offline   boshcash 

  • Master Sergeant
  • Icon
  • Group: Specialist
  • Posts: 461
  • Joined: 09-October 03

Posted 25 August 2005 - 05:04 PM

therefore no way to run something on startup with nobody user in anyway right , since editing startup programs requires root access

if anything found please inform me .



what i see now is chkconfig is located in sbin directory is it a setuid executable , or its just there and not setuid , i checked it on multiple machines its not setuid , any info about it plz tell me .

This post has been edited by boshcash: 25 August 2005 - 05:08 PM

0

#5 User is offline   JustAsFire 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 58
  • Joined: 03-August 05

Posted 26 August 2005 - 02:39 AM

Linux is pretty secure so you can't do anything without root. Like Dany_Mello said: get root :)
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

  • Share



Our Sponsors:


SwiftLayer Affiliate Web Hosting