What's the group of init?
I start my X server from my /etc/inittab. Now I want to start the X server with the Gid and Uid of my ordinary user. So which is the group and uid of Init?
|
I'm not sure what you mean by that.
To see the user and group init is running as you can type: ps -eo cmd,user,group |grep init This shows the command, user and group for processes and the grep limits output to init. You should see something like: init [5] root root So init is running as user root and group root. You could use uid,gid instead of user,group if you want the numeric values from /etc/passwd (user) and /etc/group (group) instead of the names. init is the parent process of all other processes on the system. It can NOT be started manually or killed and you should not muck with how it starts. Typically what is running in inittab is run as root so you'd have to modify the the "command" portion of the inittab entry to have an "su - <user> -c" in front of a command (or have it in a script and use that as the command). However, I don't know that you can run X Windows itself as a non-root user. Note that even though X Windows is being started by root user it doesn't grant access - you still have to login to the X login screen as either the root or the non-root user of your choice. Why do you think you need to change it to a non-root user? |
Thanks for the reply.
This is the entry of my inittab: Quote:
Quote:
|
I changed:
Quote:
Quote:
Thanks for the reply. |
Glad you got it going.
Please go to Thread Tools at the top of the page and mark this as "solved". It makes it easier for others to find it when doing web searches later. |
Quote:
|
All times are GMT -5. The time now is 12:12 AM. |