view release on metacpan or search on metacpan
inc/File/Temp.pm view on Meta::CPAN
${$options{ErrStr}} = "Parent directory ($parent) is not writable\n";
return ();
}
# Check the stickiness of the directory and chown giveaway if required
# If the directory is world writable the sticky bit
# must be set
if (File::Temp->safe_level == MEDIUM) {
my $safeerr;
inc/File/Temp.pm view on Meta::CPAN
return 1;
}
# Internal routine to check whether a directory is safe
# for temp files. Safer than _is_safe since it checks for
# the possibility of chown giveaway and if that is a possibility
# checks each directory in the path to see if it is safe (with _is_safe)
# If _PC_CHOWN_RESTRICTED is not set, does the full test of each
# directory anyway.
inc/File/Temp.pm view on Meta::CPAN
my $err_ref = shift;
# Should Get the value of _PC_CHOWN_RESTRICTED if it is defined
# and If it is not there do the extensive test
local($@);
my $chown_restricted;
$chown_restricted = &POSIX::_PC_CHOWN_RESTRICTED()
if eval { &POSIX::_PC_CHOWN_RESTRICTED(); 1};
# If chown_resticted is set to some value we should test it
if (defined $chown_restricted) {
# Return if the current directory is safe
return _is_safe($path,$err_ref) if POSIX::sysconf( $chown_restricted );
}
# To reach this point either, the _PC_CHOWN_RESTRICTED symbol
# was not avialable or the symbol was there but chown giveaway
# is allowed. Either way, we now have to test the entire tree for
# safety.
# Convert path to an absolute directory if required
unless (File::Spec->file_name_is_absolute($path)) {
view all matches for this distribution
view release on metacpan or search on metacpan
KEY_chdir|5.003007||Viu
KEY_CHECK|5.006000||Viu
KEY_chmod|5.003007||Viu
KEY_chomp|5.003007||Viu
KEY_chop|5.003007||Viu
KEY_chown|5.003007||Viu
KEY_chr|5.003007||Viu
KEY_chroot|5.003007||Viu
KEY_close|5.003007||Viu
KEY_closedir|5.003007||Viu
KEY_cmp|5.003007||Viu
PERL_LANGINFO_H|5.027004||Viu
PERL_LAST_5_18_0_INTERP_MEMBER|5.017009||Viu
Perl_ldexp|5.021003|5.021003|n
PerlLIO_access|5.005000||Viu
PerlLIO_chmod|5.005000||Viu
PerlLIO_chown|5.005000||Viu
PerlLIO_chsize|5.005000||Viu
PerlLIO_close|5.005000||Viu
PerlLIO_dup2|5.005000||Viu
PerlLIO_dup2_cloexec|5.027008||Viu
PerlLIO_dup|5.005000||Viu
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Net/Server.pm view on Meta::CPAN
croak "Unsecure filename \"$prop->{'log_file'}\"" if $prop->{'log_file'} !~ m|^([\:\w\.\-/\\]+)$|;
$prop->{'log_file'} = $1; # open a logging file
open(_SERVER_LOG, ">>", $prop->{'log_file'})
|| croak "Couldn't open log file \"$prop->{'log_file'}\" [$!]";
_SERVER_LOG->autoflush(1);
push @{ $prop->{'chown_files'} }, $prop->{'log_file'};
}
sub post_configure_hook {}
sub _server_type { ref($_[0]) }
lib/Net/Server.pm view on Meta::CPAN
$self->fatal(my $e = $@) if $@;
} else {
$self->fatal("Invalid user \"$prop->{'user'}\"");
}
# chown any files or sockets that we need to
if ($prop->{'group'} ne $) || $prop->{'user'} ne $>) {
my @chown_files;
push @chown_files, map {$_->NS_port} grep {$_->NS_proto =~ /^UNIX/} @{ $prop->{'sock'} };
push @chown_files, $prop->{'pid_file'} if $prop->{'pid_file_unlink'};
push @chown_files, $prop->{'lock_file'} if $prop->{'lock_file_unlink'};
push @chown_files, @{ $prop->{'chown_files'} || [] };
my $uid = $prop->{'user'};
my $gid = (split /\ /, $prop->{'group'})[0];
foreach my $file (@chown_files){
chown($uid, $gid, $file) || $self->fatal("Couldn't chown \"$file\" [$!]");
}
}
if ($prop->{'chroot'}) {
$self->fatal("Specified chroot \"$prop->{'chroot'}\" doesn't exist.") if ! -d $prop->{'chroot'};
view all matches for this distribution
view release on metacpan or search on metacpan
mkdir -p /etc/svscan/str/log
mkdir -p /var/log/str
groupadd nofiles
groupadd -g nofiles sdaclnt
chown sdaclnt:nofiles /var/log/str
cp str /etc/svscan/str
cd /etc/svscan/str
echo "username\npassword\n" > logindetails
Create run as per:
'- str
Create a group 'nofiles' if you haven't already got one (see
groupadd(8)). Create a user 'sdaclnt' in that group (useradd(8)).
Create a directory /var/log/str and chown sdaclnt:nofiles it.
Ensure str is in /etc/svscan/str and then link the
str directory in to /service.
Then, if you want to logout, do 'svc -d /service/str' To
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Net/WWD/Functions.pm view on Meta::CPAN
$code =~ s/accept\(//g;
$code =~ s/bind\(//g;
$code =~ s/binmode\(//g;
$code =~ s/chdir\(//g;
$code =~ s/chmod\(//g;
$code =~ s/chown\(//g;
$code =~ s/chroot\(//g;
$code =~ s/close\(//g;
$code =~ s/closedir\(//g;
$code =~ s/connect\(//g;
$code =~ s/dbmclose\(//g;
view all matches for this distribution
view release on metacpan or search on metacpan
easyxs/ppport.h view on Meta::CPAN
KEY_chdir|5.003007||Viu
KEY_CHECK|5.006000||Viu
KEY_chmod|5.003007||Viu
KEY_chomp|5.003007||Viu
KEY_chop|5.003007||Viu
KEY_chown|5.003007||Viu
KEY_chr|5.003007||Viu
KEY_chroot|5.003007||Viu
KEY_close|5.003007||Viu
KEY_closedir|5.003007||Viu
KEY_cmp|5.003007||Viu
easyxs/ppport.h view on Meta::CPAN
PERL_LANGINFO_H|5.027004||Viu
PERL_LAST_5_18_0_INTERP_MEMBER|5.017009||Viu
Perl_ldexp|5.021003|5.021003|n
PerlLIO_access|5.005000||Viu
PerlLIO_chmod|5.005000||Viu
PerlLIO_chown|5.005000||Viu
PerlLIO_chsize|5.005000||Viu
PerlLIO_close|5.005000||Viu
PerlLIO_dup2|5.005000||Viu
PerlLIO_dup2_cloexec|5.027008||Viu
PerlLIO_dup|5.005000||Viu
view all matches for this distribution
view release on metacpan or search on metacpan
examples/leafmail view on Meta::CPAN
C<leafmail>.
=item 3
Make sure the hash-bang line at the top of the C<leafmail> script points
to your copy of Perl. B<chmod> C<leafmail> to executable, B<chown> it
to B<mail>, and stick it in I</usr/sbin> or somewhere similar.
=item 4
Edit your copy of I<leafmail.cf>, the C<leafmail> configuration file. Put
view all matches for this distribution
view release on metacpan or search on metacpan
src/core/ngx_cycle.c view on Meta::CPAN
continue;
}
if (fi.st_uid != user) {
if (chown((const char *) file[i].name.data, user, -1) == -1) {
ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno,
"chown(\"%s\", %d) failed",
file[i].name.data, user);
if (ngx_close_file(fd) == NGX_FILE_ERROR) {
ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno,
ngx_close_file_n " \"%s\" failed",
view all matches for this distribution
view release on metacpan or search on metacpan
lib/No/Worries/Stat.pm view on Meta::CPAN
if ($message->{group} and $stat->[ST_GID] != $option->{gid}) {
$stat->[ST_GID] = $option->{gid};
push(@todo, $message->{group});
}
return(0) unless @todo and $option->{callback}->($path, "@todo");
chown($stat->[ST_UID], $stat->[ST_GID], $path)
or dief("cannot chown(%d, %d, %s): %s",
$stat->[ST_UID], $stat->[ST_GID], $path, $!);
return(1)
}
#
lib/No/Worries/Stat.pm view on Meta::CPAN
"symlink", "unknown" and "whiteout".
=item stat_ensure(PATH[, OPTIONS])
make sure the given path has the expected file "status" (w.r.t. stat()) and
call chown(), chmod() or utime() if needed, returning the number of changes
performed; supported options:
=over
=item * C<user>: expected user name or uid
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Number/Phone/UK/DBM/Deep.pm view on Meta::CPAN
##
my @stats = stat($self->_fh);
my $perms = $stats[2] & 07777;
my $uid = $stats[4];
my $gid = $stats[5];
chown( $uid, $gid, $self->_root->{file} . '.tmp' );
chmod( $perms, $self->_root->{file} . '.tmp' );
# q.v. perlport for more information on this variable
if ( $^O eq 'MSWin32' || $^O eq 'cygwin' ) {
##
view all matches for this distribution
view release on metacpan or search on metacpan
include/ppport.h view on Meta::CPAN
KEY_chdir|5.003007||Viu
KEY_CHECK|5.006000||Viu
KEY_chmod|5.003007||Viu
KEY_chomp|5.003007||Viu
KEY_chop|5.003007||Viu
KEY_chown|5.003007||Viu
KEY_chr|5.003007||Viu
KEY_chroot|5.003007||Viu
KEY_close|5.003007||Viu
KEY_closedir|5.003007||Viu
KEY_cmp|5.003007||Viu
include/ppport.h view on Meta::CPAN
PERL_LANGINFO_H|5.027004||Viu
PERL_LAST_5_18_0_INTERP_MEMBER|5.017009||Viu
Perl_ldexp|5.021003||Viu
PerlLIO_access|5.005000||Viu
PerlLIO_chmod|5.005000||Viu
PerlLIO_chown|5.005000||Viu
PerlLIO_chsize|5.005000||Viu
PerlLIO_close|5.005000||Viu
PerlLIO_dup2|5.005000||Viu
PerlLIO_dup2_cloexec|5.027008||Viu
PerlLIO_dup|5.005000||Viu
view all matches for this distribution
view release on metacpan or search on metacpan
include/ppport.h view on Meta::CPAN
KEY_chdir|5.003007||Viu
KEY_CHECK|5.006000||Viu
KEY_chmod|5.003007||Viu
KEY_chomp|5.003007||Viu
KEY_chop|5.003007||Viu
KEY_chown|5.003007||Viu
KEY_chr|5.003007||Viu
KEY_chroot|5.003007||Viu
KEY_close|5.003007||Viu
KEY_closedir|5.003007||Viu
KEY_cmp|5.003007||Viu
include/ppport.h view on Meta::CPAN
PERL_LANGINFO_H|5.027004||Viu
PERL_LAST_5_18_0_INTERP_MEMBER|5.017009||Viu
Perl_ldexp|5.021003|5.021003|n
PerlLIO_access|5.005000||Viu
PerlLIO_chmod|5.005000||Viu
PerlLIO_chown|5.005000||Viu
PerlLIO_chsize|5.005000||Viu
PerlLIO_close|5.005000||Viu
PerlLIO_dup2|5.005000||Viu
PerlLIO_dup2_cloexec|5.027008||Viu
PerlLIO_dup|5.005000||Viu
view all matches for this distribution
view release on metacpan or search on metacpan
KEY_chdir|5.003007||Viu
KEY_CHECK|5.006000||Viu
KEY_chmod|5.003007||Viu
KEY_chomp|5.003007||Viu
KEY_chop|5.003007||Viu
KEY_chown|5.003007||Viu
KEY_chr|5.003007||Viu
KEY_chroot|5.003007||Viu
KEY_close|5.003007||Viu
KEY_closedir|5.003007||Viu
KEY_cmp|5.003007||Viu
PERL_LANGINFO_H|5.027004||Viu
PERL_LAST_5_18_0_INTERP_MEMBER|5.017009||Viu
Perl_ldexp|5.021003|5.021003|n
PerlLIO_access|5.005000||Viu
PerlLIO_chmod|5.005000||Viu
PerlLIO_chown|5.005000||Viu
PerlLIO_chsize|5.005000||Viu
PerlLIO_close|5.005000||Viu
PerlLIO_dup2|5.005000||Viu
PerlLIO_dup2_cloexec|5.027008||Viu
PerlLIO_dup|5.005000||Viu
view all matches for this distribution
view release on metacpan or search on metacpan
lib/OSDial.pm view on Meta::CPAN
$dir = '.' unless ($dir);
$overwrite = 0 unless ($overwrite);
unless (-e $dir) {
mkdir($dir,oct('0777'));
my ($login,$pass,$uid,$gid) = getpwnam('asterisk');
chown($uid,$gid,$dir);
}
chmod(oct('0777'),$dir);
my $file = $dir.'/'.$filename;
$self->debug(3,'media_save_file'," Adding File:%s Dir:%s Name:%s Overwrite:%s", $file, $dir, $filename, $overwrite);
lib/OSDial.pm view on Meta::CPAN
open(MSF, '>'.$file);
binmode(MSF);
print MSF $filedata;
close(MSF);
my ($login,$pass,$uid,$gid) = getpwnam('asterisk');
chown($uid,$gid,$file);
chmod(oct('0666'),$file);
return '='.$filename if ($overwrite);
return '+'.$filename;
}
lib/OSDial.pm view on Meta::CPAN
$pattern = '.*' unless ($pattern);
$self->debug(3,'media_save_files',"Adding Files:%s Pattern:%s Overwrite:%s", $dir, $pattern, $overwrite);
unless (-e $dir) {
mkdir($dir,oct('0777'));
my ($login,$pass,$uid,$gid) = getpwnam('asterisk');
chown($uid,$gid,$dir);
}
chmod(oct('0777'),$dir);
my @files;
while (my $sret = $self->sql_query("SELECT * FROM osdial_media;", "MSF")) {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Object/Import.pm view on Meta::CPAN
$special_source{$_}++, $special_target{$_}++ for
qw"BEGIN UNITCHECK CHECK INIT END";
# The following names could override a builtin function if exported to a module
$special_target{$_}++ for qw"
abs accept alarm atan2 bind binmode bless break caller chdir chmod
chomp chop chown chr chroot close closedir connect continue cos
crypt dbmclose dbmopen default defined delete die do dump each
else elsif endgrent endhostent endnetent endprotoent endpwent
endservent eof eval exec exists exit exp fcntl fileno flock for
foreach fork format formline getc getgrent getgrgid getgrnam
gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr
view all matches for this distribution
view release on metacpan or search on metacpan
KEY_chdir|5.003007||Viu
KEY_CHECK|5.006000||Viu
KEY_chmod|5.003007||Viu
KEY_chomp|5.003007||Viu
KEY_chop|5.003007||Viu
KEY_chown|5.003007||Viu
KEY_chr|5.003007||Viu
KEY_chroot|5.003007||Viu
KEY_close|5.003007||Viu
KEY_closedir|5.003007||Viu
KEY_cmp|5.003007||Viu
PERL_LANGINFO_H|5.027004||Viu
PERL_LAST_5_18_0_INTERP_MEMBER|5.017009||Viu
Perl_ldexp|5.021003|5.021003|n
PerlLIO_access|5.005000||Viu
PerlLIO_chmod|5.005000||Viu
PerlLIO_chown|5.005000||Viu
PerlLIO_chsize|5.005000||Viu
PerlLIO_close|5.005000||Viu
PerlLIO_dup2|5.005000||Viu
PerlLIO_dup2_cloexec|5.027008||Viu
PerlLIO_dup|5.005000||Viu
view all matches for this distribution
view release on metacpan or search on metacpan
KEY_chdir|5.003007||Viu
KEY_CHECK|5.006000||Viu
KEY_chmod|5.003007||Viu
KEY_chomp|5.003007||Viu
KEY_chop|5.003007||Viu
KEY_chown|5.003007||Viu
KEY_chr|5.003007||Viu
KEY_chroot|5.003007||Viu
KEY_close|5.003007||Viu
KEY_closedir|5.003007||Viu
KEY_cmp|5.003007||Viu
PERL_LANGINFO_H|5.027004||Viu
PERL_LAST_5_18_0_INTERP_MEMBER|5.017009||Viu
Perl_ldexp|5.021003|5.021003|n
PerlLIO_access|5.005000||Viu
PerlLIO_chmod|5.005000||Viu
PerlLIO_chown|5.005000||Viu
PerlLIO_chsize|5.005000||Viu
PerlLIO_close|5.005000||Viu
PerlLIO_dup2|5.005000||Viu
PerlLIO_dup2_cloexec|5.027008||Viu
PerlLIO_dup|5.005000||Viu
view all matches for this distribution
view release on metacpan or search on metacpan
lib/OpenGL/Modern/ppport.h view on Meta::CPAN
KEY_chdir|5.003007||Viu
KEY_CHECK|5.006000||Viu
KEY_chmod|5.003007||Viu
KEY_chomp|5.003007||Viu
KEY_chop|5.003007||Viu
KEY_chown|5.003007||Viu
KEY_chr|5.003007||Viu
KEY_chroot|5.003007||Viu
KEY_close|5.003007||Viu
KEY_closedir|5.003007||Viu
KEY_cmp|5.003007||Viu
lib/OpenGL/Modern/ppport.h view on Meta::CPAN
PERL_LANGINFO_H|5.027004||Viu
PERL_LAST_5_18_0_INTERP_MEMBER|5.017009||Viu
Perl_ldexp|5.021003|5.021003|n
PerlLIO_access|5.005000||Viu
PerlLIO_chmod|5.005000||Viu
PerlLIO_chown|5.005000||Viu
PerlLIO_chsize|5.005000||Viu
PerlLIO_close|5.005000||Viu
PerlLIO_dup2|5.005000||Viu
PerlLIO_dup2_cloexec|5.027008||Viu
PerlLIO_dup|5.005000||Viu
view all matches for this distribution
view release on metacpan or search on metacpan
OpenIndex.pm view on Meta::CPAN
$msg=$lang->{GIDbad} || 'GID name not found';
errmsg(qq~${cmdname}: "$igid" $msg~);
return 0;
}
}
unless($igid && chown(-1,$igid,$src)) {
$msg=$lang->{GIDset} || 'GID not set';
errmsg(qq~${cmdname}: "$name" $msg~);
return 0;
}
$r->log->notice(__PACKAGE__." $args->{user}: SetGID: $igid $src");
OpenIndex.pm view on Meta::CPAN
return 0 unless $fgid;
unless(mkdir $dst,0755) {
errmsg("${cmdname}: $!");
return 0;
}
chown(-1,$fgid,$dst);
} else {
unless(mkdir $dst,0755) {
errmsg("${cmdname}: $!");
return 0;
}
OpenIndex.pm view on Meta::CPAN
$dst.='/';
for my $member ($zip->members()) {
($name=$dst).=$member->fileName();
if($member->isDirectory()) {
mkdir $name,0775;
chown(-1,$fgid,$name);
next;
}
unless($member->extractToFileNamed($name)==AZ_OK) {
errmsg("$cmdname: $name");
return 0;
}
chown(-1,$fgid,$name);
++$files;
}
$r->log->notice(__PACKAGE__." $args->{user}: Unzip: $src files=$files");
1;
}
OpenIndex.pm view on Meta::CPAN
$dst="$dst/$target" if $src_is_dir;
unless(File::Copy::move($src, $dst)) {
errmsg("${cmdname}: $!");
return 0;
}
chown(-1,$dstgid,$dst) unless $args->{isadmin}; # admin can move others
$r->log->notice(__PACKAGE__." $args->{user}: Move: $src->$dst");
1;
}
sub Rename {
OpenIndex.pm view on Meta::CPAN
}
$bytes+=$size;
}
$args->{bytes}+=$bytes;
close DFH;
chown(-1,$fgid,$dst);
$r->log->notice(__PACKAGE__." $args->{user}: Upload: $bytes: $src->$dst");
1;
}
sub View {
OpenIndex.pm view on Meta::CPAN
print FILE $args->{text};
close FILE;
unless($exists) {
my ($parent)=$file=~m:(^.*)/.+:o;
my $fgid=(stat $parent)[5];
chown(-1,$fgid,$file);
}
$r->log->notice(__PACKAGE__." $args->{user}: EditSave: $file");
}
}
editini($r,$args,$file,"$docroot$args->{info}");
OpenIndex.pm view on Meta::CPAN
}
0;
}
sub chgid {
chown(-1,$chgid,$_[1]) if $chgid;
1;
}
sub outfile {
my ($file,$suppress) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
INSTALL.website view on Meta::CPAN
most of the time this is 'nobody'.
To do this, just run:
$ cd %%WEBSITE_DIR%%
$ chown -R nobody html/
$ chown -R nobody cache/
$ chown -R nobody overflow/
$ chown -R nobody uploads/
(7) Edit Apache virtual host configuration
Using the static/modperl configuration assumes that you have already
view all matches for this distribution
view release on metacpan or search on metacpan
share/ppport.h view on Meta::CPAN
KEY_chdir|5.003007||Viu
KEY_CHECK|5.006000||Viu
KEY_chmod|5.003007||Viu
KEY_chomp|5.003007||Viu
KEY_chop|5.003007||Viu
KEY_chown|5.003007||Viu
KEY_chr|5.003007||Viu
KEY_chroot|5.003007||Viu
KEY_close|5.003007||Viu
KEY_closedir|5.003007||Viu
KEY_cmp|5.003007||Viu
share/ppport.h view on Meta::CPAN
PERL_LANGINFO_H|5.027004||Viu
PERL_LAST_5_18_0_INTERP_MEMBER|5.017009||Viu
Perl_ldexp|5.021003|5.021003|n
PerlLIO_access|5.005000||Viu
PerlLIO_chmod|5.005000||Viu
PerlLIO_chown|5.005000||Viu
PerlLIO_chsize|5.005000||Viu
PerlLIO_close|5.005000||Viu
PerlLIO_dup2|5.005000||Viu
PerlLIO_dup2_cloexec|5.027008||Viu
PerlLIO_dup|5.005000||Viu
view all matches for this distribution
view release on metacpan or search on metacpan
inc/File/NCopy.pm view on Meta::CPAN
utime $atime,$mtime,$file_to
unless ref $file_to eq 'GLOB' || ref $file_to eq 'FileHandle';
# this may only work for men in white hats; on Unix
chown $uid,$gid,$file_to
unless ref $file_to eq 'GLOB' || ref $file_to eq 'FileHandle';
1;
}
# all the actual copying is done here, folks ;)
view all matches for this distribution
view release on metacpan or search on metacpan
lib/OpenVZ/Vzctl.pm view on Meta::CPAN
####################################
my @capabilities = qw(
chown dac_override dac_read_search fowner fsetid ipc_lock ipc_owner kill
lease linux_immutable mknod net_admin net_bind_service net_broadcast
net_raw setgid setpcap setuid setveid sys_admin sys_boot sys_chroot
sys_module sys_nice sys_pacct sys_ptrace sys_rawio sys_resource sys_time
sys_tty_config ve_admin
lib/OpenVZ/Vzctl.pm view on Meta::CPAN
=item capability
Expects one of the following capabilities
chown dac_override dac_read_search fowner fsetid ipc_lock ipc_owner kill lease linux_immutable mknod net_admin net_bind_service
net_broadcast net_raw setgid setpcap setuid setveid sys_admin sys_boot sys_chroot sys_module sys_nice sys_pacct sys_ptrace
sys_rawio sys_resource sys_time sys_tty_config ve_admin
joined with either 'on' or 'off' with a colon. E.g., 'chown:on'.
=item cpumask
Expects either a comma separated list of integers or the word 'all'.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Orbital/Transfer/System/Debian.pm view on Meta::CPAN
method _install() {
if( Orbital::Transfer::System::Docker->is_inside_docker ) {
# create a non-root user
say STDERR "Creating user nonroot (this should only occur inside Docker)";
system(qw(useradd -m notroot));
system(qw(chown -R notroot:notroot /build));
}
my @packages = map {
Orbital::Transfer::RepoPackage::APT->new( name => $_ )
} qw(xvfb xauth);
$self->runner->system(
lib/Orbital/Transfer/System/Debian.pm view on Meta::CPAN
}
}
method process_git_path($path) {
if( Orbital::Transfer::System::Docker->is_inside_docker ) {
system(qw(chown -R notroot:notroot), $path);
}
}
with qw(
Orbital::Transfer::System::Role::Config
view all matches for this distribution
view release on metacpan or search on metacpan
KEY_chdir|5.003007||Viu
KEY_CHECK|5.006000||Viu
KEY_chmod|5.003007||Viu
KEY_chomp|5.003007||Viu
KEY_chop|5.003007||Viu
KEY_chown|5.003007||Viu
KEY_chr|5.003007||Viu
KEY_chroot|5.003007||Viu
KEY_close|5.003007||Viu
KEY_closedir|5.003007||Viu
KEY_cmp|5.003007||Viu
PERL_LANGINFO_H|5.027004||Viu
PERL_LAST_5_18_0_INTERP_MEMBER|5.017009||Viu
Perl_ldexp|5.021003||Viu
PerlLIO_access|5.005000||Viu
PerlLIO_chmod|5.005000||Viu
PerlLIO_chown|5.005000||Viu
PerlLIO_chsize|5.005000||Viu
PerlLIO_close|5.005000||Viu
PerlLIO_dup2|5.005000||Viu
PerlLIO_dup2_cloexec|5.027008||Viu
PerlLIO_dup|5.005000||Viu
view all matches for this distribution
view release on metacpan or search on metacpan
lib/PAGI/Server.pm view on Meta::CPAN
sudo groupadd myapp
sudo usermod -aG myapp www-data # nginx user
sudo usermod -aG myapp myappuser # app user
sudo mkdir -p /var/run/myapp
sudo chown myappuser:myapp /var/run/myapp
sudo chmod 0750 /var/run/myapp
=item * B<Use systemd C<RuntimeDirectory>> for automatic directory management:
# /etc/systemd/system/myapp.service
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
WriteMakefile (
NAME => 'PApp::SQL',
VERSION_FROM => 'SQL.pm',
'dist' => {
PREOP => 'pod2text SQL.pm | tee README >$(DISTVNAME)/README; '.
'chown -R root.root .; chmod -R u=rwX,go=rX . ;',
COMPRESS => 'gzip -9v',
SUFFIX => '.gz',
},
'PREREQ_PM' => {
DBI => 1.609,
view all matches for this distribution
view release on metacpan or search on metacpan
I18n/I18n.pm view on Meta::CPAN
sub export_dpo($$;$$) {
my ($domain, $path, $uid, $gid, $attr) = @_;
local $PApp::SQL::DBH = PApp::Config::DBH;
mkdir $path, defined $attr ? $attr | 0111 : 0755;
chown $uid, $gid, $path if defined $uid;
unlink for glob "$path/*.dpo";
for my $lang (sql_fetchall "select distinct s.lang
from msgid i, msgstr s
where i.domain = ? and i.nr = s.nr",
$domain) {
I18n/I18n.pm view on Meta::CPAN
my $dpo = new PApp::I18n::DPO_Writer "$pofile~", $prime;
while ($st->fetch) {
$dpo->add(utf8_on $id,utf8_on $msg) if $id ne $msg;
}
undef $dpo;
chown $uid, $gid, "$pofile~" if defined $uid;
chmod $attr, "$pofile~" if defined $attr;
rename "$pofile~", $pofile;
push @files, $pofile;
} else {
unlink $pofile;
view all matches for this distribution
view release on metacpan or search on metacpan
sndlib/install-sh view on Meta::CPAN
# put in absolute paths if you don't have them in your path; or use env. vars.
mvprog="${MVPROG-mv}"
cpprog="${CPPROG-cp}"
chmodprog="${CHMODPROG-chmod}"
chownprog="${CHOWNPROG-chown}"
chgrpprog="${CHGRPPROG-chgrp}"
stripprog="${STRIPPROG-strip}"
rmprog="${RMPROG-rm}"
mkdirprog="${MKDIRPROG-mkdir}"
transformbasename=""
transform_arg=""
instcmd="$mvprog"
chmodcmd="$chmodprog 0755"
chowncmd=""
chgrpcmd=""
stripcmd=""
rmcmd="$rmprog -f"
mvcmd="$mvprog"
src=""
sndlib/install-sh view on Meta::CPAN
-m) chmodcmd="$chmodprog $2"
shift
shift
continue;;
-o) chowncmd="$chownprog $2"
shift
shift
continue;;
-g) chgrpcmd="$chgrpprog $2"
sndlib/install-sh view on Meta::CPAN
if [ x"$dir_arg" != x ]
then
$doit $instcmd $dst &&
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
else
sndlib/install-sh view on Meta::CPAN
# If any of these fail, we abort the whole thing. If we want to
# ignore errors from any of these, just make sure not to ignore
# errors from the above "$doit $instcmd $src $dsttmp" command.
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
# Now rename the file to the real destination.
view all matches for this distribution
view release on metacpan or search on metacpan
matio-1.5.0/config/install-sh view on Meta::CPAN
# Put in absolute file names if you don't have them in your path;
# or use environment vars.
chgrpprog=${CHGRPPROG-chgrp}
chmodprog=${CHMODPROG-chmod}
chownprog=${CHOWNPROG-chown}
cmpprog=${CMPPROG-cmp}
cpprog=${CPPROG-cp}
mkdirprog=${MKDIRPROG-mkdir}
mvprog=${MVPROG-mv}
rmprog=${RMPROG-rm}
matio-1.5.0/config/install-sh view on Meta::CPAN
# Desired mode of installed file.
mode=0755
chgrpcmd=
chmodcmd=$chmodprog
chowncmd=
mvcmd=$mvprog
rmcmd="$rmprog -f"
stripcmd=
src=
matio-1.5.0/config/install-sh view on Meta::CPAN
-c (ignored)
-C install only if different (preserve the last data modification time)
-d create directories instead of installing files.
-g GROUP $chgrpprog installed files to GROUP.
-m MODE $chmodprog installed files to MODE.
-o USER $chownprog installed files to USER.
-s $stripprog installed files.
-t DIRECTORY install into DIRECTORY.
-T report an error if DSTFILE is a directory.
Environment variables override the default commands:
matio-1.5.0/config/install-sh view on Meta::CPAN
echo "$0: invalid mode: $mode" >&2
exit 1;;
esac
shift;;
-o) chowncmd="$chownprog $2"
shift;;
-s) stripcmd=$stripprog;;
-t) dst_arg=$2
matio-1.5.0/config/install-sh view on Meta::CPAN
fi
fi
fi
if test -n "$dir_arg"; then
{ test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
{ test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
else
# Make a couple of temp file names in the proper directory.
dsttmp=$dstdir/_inst.$$_
matio-1.5.0/config/install-sh view on Meta::CPAN
#
# If any of these fail, we abort the whole thing. If we want to
# ignore errors from any of these, just make sure not to ignore
# errors from the above "$doit $cpprog $src $dsttmp" command.
#
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
{ test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
{ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
# If -C, don't bother to copy if it wouldn't change the file.
view all matches for this distribution