Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Im running SOL11.1 and have setup a desktop file to run in

/etc/xdg/autostart

this calls a main script which calls other scripts. The regular commands work. But the sudo commands doesn't seem to run.

Can anyone advise me how to execute the root commands at startup (preferably with a .desktop file)?

In the log I see that there is an entry saying:

Adventure sudo: [ID 702911 auth.alert] aubrey : pam_authenticate: Conversion failure ; TTY=unknown ; PWD=/home/aubrey ; USER=root ; COMMAND=/usr/sbin/ifconfig net0 down

which is the main sudo command in that I am talking about that needs to be run by root;

Is there a possibility that because root is a role in Solaris there is some other way to do this? I have the same scripts running on Linux and it all works. I just had to edit the /etc/sudoers file.

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.