By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,542 Members | 1,434 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,542 IT Pros & Developers. It's quick & easy.

how to change the effective user identficator

P: n/a
Hi,
I can't change the EUID of a perl process which performs a perl script.
I used the manual perlsec and wrote the script:

#!/usr/bin/perl

use English '-no_match_vars';

$EUID = 0;
open(THEFILE, ">/var/log/messages") || die "can't open file";
print "The file was opened\n";
#end of the script

The script file has the rights:
$chown root:root test.pl
$chmod a+xs test.pl
The script gives the error "can't open file"
Daneel
Jul 20 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
[Forwarding to CLPM because CLP is obsolete]

Daneel Yaitskov <rt************@gmail.comwrote:
>I can't change the EUID of a perl process which performs a perl script.
I used the manual perlsec and wrote the script:

#!/usr/bin/perl

use English '-no_match_vars';

$EUID = 0;
open(THEFILE, ">/var/log/messages") || die "can't open file";
print "The file was opened\n";
#end of the script

The script file has the rights:
$chown root:root test.pl
$chmod a+xs test.pl
The script gives the error "can't open file"
Daneel
Jul 20 '08 #2

P: n/a
Jürgen Exner wrote:
[Forwarding to CLPM because CLP is obsolete]

I don't know what is CLPM. I didn't find definition of CLPM or CLP in
manuals: perl, perltoc and perldoc CLPM. Please, hint where can I read
about it.

Daneel
Jul 20 '08 #3

P: n/a
Daneel Yaitskov <rt************@gmail.comwrote:
>Jürgen Exner wrote:
>[Forwarding to CLPM because CLP is obsolete]


I don't know what is CLPM. I didn't find definition of CLPM or CLP in
comp.lang.perl.misc

comp.lang.perl has been rmgroup'ed and replaced with the
comp.lang.perl.* hierarchy over a decade ago.
>manuals: perl, perltoc and perldoc CLPM. Please, hint where can I read
about it.
perldoc -q usenet

jue
Jul 20 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.