Search Results

Search: Posts Made By: polki
26,894
Posted By polki
Wow, that things have to be this complicated! :D...
Wow, that things have to be this complicated! :D But i finally got to where I wanted to be.

The work did a little option "-H" when running the command. This option specifies to set the home...
26,894
Posted By polki
Thought it would be some groups problem, since...
Thought it would be some groups problem, since the sudoers manpage I read online said something about specifying a group when performing sudo. Turns out this seems to be an old version and this...
26,894
Posted By polki
Well, I would exclude a syntax error, since in...
Well, I would exclude a syntax error, since in the sudoers file is the following example:

I first tried to add this line to just make the www-data user free of anything:

After that didn't work,...
26,894
Posted By polki
That's the capture of me logging in to www-data...
That's the capture of me logging in to www-data and performing a sudo command:
That's where the story ends. I never gave a password to www-data, so I don't know what to enter. I also edited...
26,894
Posted By polki
Ok, seems like now the problem shifted a bit....
Ok, seems like now the problem shifted a bit. After trying sudo from within perl, the auth-logfile showed this line:
So from root i su'ed to ww-data and tried entering the command directly from...
26,894
Posted By polki
Thanks for the hint. Sounded like the right way,...
Thanks for the hint. Sounded like the right way, tried it by adding

to /etc/sudoers. Still the same log entry...
26,894
Posted By polki
Gave that a shot too, but the manpage of sudo...
Gave that a shot too, but the manpage of sudo says the following:

So perl just grabs the output of sudo:

Unfortunately www-data has no password, since it is not intended to be used as a system...
26,894
Posted By polki
Run system command in perl cgi
Hi guys,
got a problem with a perl cgi script over here. I need it to run a system command to get the status of a process. Unfortunately the process is owned by a specific user and only this user...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 07:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy