Thread Herausfinden ob mann root ist (5 answers)
Opened by Lebowski at 2011-07-06 23:57

GwenDragon
 2011-07-07 10:34
#150207 #150207
User since
2005-01-17
14749 Artikel
Admin1
[Homepage]
user image
Code (perl): (dl )
1
2
3
my $user_name = getlogin();
if ($user_name eq 'root') {
}

oder
Code (perl): (dl )
1
2
3
my $user_name = $ENV{LOGNAME} || $ENV{USER} || getpwuid($<);
if ($user_name eq 'root') {
}

Last edited: 2011-07-07 10:37:42 +0200 (CEST)

View full thread Herausfinden ob mann root ist