I have got answers to the questions i asked previously, please say whether they are right or wrong. If wrong suggest me where is the mistake. Thanks
Q)Configure sudoers in the following way:
3.a) it only allows the user adam and drew to have the root privilege to run /sbin/telinit;
3.b whenever the users use sudo to run some commands, this activity will be logged to file /var/log/sudolog
After you finish the above configuration, log into the system as user adam at runlevel 3, and run the command telinit 5, what will happen?
supposing current username is suman
suman (ALL) = adam, /sbin/telinit
suman (ALL) = drew, /sbin/telinit
Telinit command will change the run level, so, Telinit 5 will make user adam to enter into multi-user mode and boot up in X Windows.
Please check and reply me boss.