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
lib/List/Gen/Lazy/Builtins.pm view on Meta::CPAN
eval "fn @pre @post" or die $@;
}
my @builtin = qw(
abs accept alarm atan2 bind binmode bless caller chdir chmod chomp
chop chown chr chroot close closedir connect cos crypt dbmclose dbmopen
default defined die do endgrent endhostent endnetent endprotoent
endpwent endservent eof eval exec exit exp fcntl fileno flock fork
formline getc getgrent getgrgid getgrnam gethostbyaddr gethostbyname
gethostent getlogin getnetbyaddr getnetbyname getnetent getpeername
getpgrp getppid getpriority getprotobyname getprotobynumber getprotoent
lib/List/Gen/Lazy/Builtins.pm view on Meta::CPAN
my $x = &shift(\@array); # must use parens and manually take the reference
the implemented functions are:
abs accept alarm atan2 bind binmode bless caller chdir chmod chomp chop
chown chr chroot close closedir connect cos crypt dbmclose dbmopen default
defined die do endgrent endhostent endnetent endprotoent endpwent
endservent eof eval exec exit exp fcntl fileno flock fork formline getc
getgrent getgrgid getgrnam gethostbyaddr gethostbyname gethostent getlogin
getnetbyaddr getnetbyname getnetent getpeername getpgrp getppid getpriority
getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid
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||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
#: src/attrib.c:1076
msgid "I can't find that player"
msgstr ""
#: src/attrib.c:1107
msgid "You can only chown an attribute to the current owner of the object."
msgstr ""
#: src/attrib.c:1111
msgid "Attribute owner changed."
msgstr ""
#: src/attrib.c:1114
msgid "You don't have the permission to chown that."
msgstr ""
#: src/attrib.c:1118
msgid "No such attribute."
msgstr ""
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Log/Log4perl/Appender/File.pm view on Meta::CPAN
die "Unknown group: $self->{group}" unless defined $gid;
}
}
if($uid != $uid_org or $gid != $gid_org) {
chown($uid, $gid, $self->{filename}) or
die "chown('$uid', '$gid') on '$self->{filename}' failed: $!";
}
}
##################################################
sub file_switch {
view all matches for this distribution
view release on metacpan or search on metacpan
## preserve permissions and status
if ( $self->{'Persist'} eq 'yes' ){
my @stat = stat $curr;
chmod( $stat[2], $next ) or carp "error: chmod failed: ($next)";
utime( $stat[8], $stat[9], $next ) or carp "error: failed: ($next)";
chown( $stat[4], $stat[5], $next ) or carp "error: chown failed: ($next)";
}
# now truncate the file
if( $self->{'Flock'} eq 'yes' )
{
The C<Persist> argument allows you to control whether the program will
try and set the current log file ownership and permissions on any new
files that may be created by the rotation. In some circumstances the
program doing the file rotation may not have sufficient permission to
C<chown> on the file. By default the program will try and preserve
ownership and permissions.
=item rotate()
This method will copy the file passed in C<new> to a file of the same
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Logic/Tools.pm view on Meta::CPAN
{
# ÐапиÑÑ Ñайле блокиÑовки
open(my $pid_file, ">" ,$lock_file) || die "[FAILED] Ðе ÑдалоÑÑ ÑоздаÑÑ Ñайл блокиÑовки $lock_file\n";
print $pid_file "$pid";
close $pid_file;
chown $uid, $gid, $lock_file;
exit;
}
else
{
# daemon
lib/Logic/Tools.pm view on Meta::CPAN
{
# ÐапиÑÑ Ñайле блокиÑовки
open(my $pid_file, ">" ,$lock_file) || die "[FAILED] can't create block file $lock_file\n";
print $pid_file "$first_child_pid";
close $pid_file;
chown $uid, $gid, $lock_file;
while(1)
{
# ÐÑоÑеÑÑ Ð·Ð°Ð¿ÑÑен, но акÑивного пÑоÑеÑÑа Ñ ÑказаннÑм PID неÑ
unless( -e "/proc/$first_child_pid" )
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
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/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/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
# Copy wiki root (empty, for data persistence) and entrypoint
COPY --from=build /build/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
RUN mkdir -p /wiki && chown -R appuser:appgroup /wiki
ENV PERL5LIB=/usr/local/lib/perl5/site_perl/5.40.3:/usr/local/lib/perl5/site_perl/5.40.3/x86_64-linux-gnu
ENV MCP_WIKI_ROOT=/wiki
EXPOSE 8080
view all matches for this distribution
view release on metacpan or search on metacpan
lib/MDK/Common/System.pm view on Meta::CPAN
foreach (list_skels($prefix, $out_rel)) {
-d MDK::Common::File::dirname($_) or !-e $_ or $force or next;
template2file($in, $_, %toreplace);
m|/home/(.+?)/| and chown(getpwnam($1), getgrnam($1), $_);
}
}
sub read_gnomekderc {
my ($file, $category) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
bin/scripts/moby-s-caching.pl view on Meta::CPAN
}
use English qw( -no_match_vars );
use strict;
# performs a chown on a list of files and then returns the number of changed files
sub chown_by_name {
return 0 if (MSWIN);
my ( $uid, $guid, @files ) = @_;
return chown($uid, $guid, @files );
}
# performs a chmod on a list of files and returns the number of changed files
# UGO == UG{rw}, O{r}
sub chmod_by_name {
bin/scripts/moby-s-caching.pl view on Meta::CPAN
say"done!\n\n";
say "Setting permissions for the cache ...\n";
my $dirs = $x->{utils}->get_cache_dirs();
while ( my ( $key, $value ) = each( %{$dirs} ) ) {
say "\tUpdating permissions for '$value' ...\n";
say "\t\tchown of $value: " . chown_by_name($uid, $gid, $value) . " files updated.\n";
say "\t\tchown of all files in $value: " . chown_by_name($uid, $gid, <$value/*>) . " files updated.\n";
}
say "Done!\n";
__END__
view all matches for this distribution
view release on metacpan or search on metacpan
lib/MToken.pm view on Meta::CPAN
$self->error(sprintf("Can't prepare directory %s", $self->datadir));
return 0;
}
}
# Set permisions (GID and UID) for work directory
chown($uid, $gid, $self->datadir) if IS_ROOT && File::stat::stat($self->datadir)->uid != $uid;
}
# Prepare tempdir
$self->tempdir(File::Spec->catdir(File::Spec->tmpdir(), PROJECTNAMEL));
unless (preparedir( $self->tempdir, 0777 )) {
$self->error(sprintf("Can't prepare temp directory: %s", $self->tempdir));
return 0;
}
chown($uid, $gid, $self->tempdir) if IS_ROOT && File::stat::stat($self->tempdir)->uid != $uid;
$self->debug(sprintf("Temp dir: %s", $self->tempdir));
# Prepare log directory
if (IS_ROOT) {
my $logdir = $self->logdir;
unless (preparedir( $logdir, 0777 )) {
$self->error(sprintf("Can't prepare log directory: %s", $logdir));
return 0;
}
# Set permisions (GID and UID) for log directory
chown($uid, $gid, $logdir) if File::stat::stat($logdir)->uid != $uid;
$self->debug(sprintf("Log dir: %s", $self->logdir));
} else {
$self->logfile(File::Spec->catfile($self->tempdir(), sprintf("%s.log", PROJECTNAMEL)));
$self->debug(sprintf("Log file: %s", $self->logfile));
}
lib/MToken.pm view on Meta::CPAN
unless (preparedir($piddir)) {
$self->error(sprintf("Can't prepare pid directory: %s", $piddir));
return 0;
}
# Set permisions (GID and UID) for pid directory
chown($uid, $gid, $piddir) if IS_ROOT && File::stat::stat($piddir)->uid != $uid;
$self->debug(sprintf("Pid file: %s", $pidfile));
# Hypnotoad variables
my $upgrade = 0;
my $reload = 0;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/MYDan/Agent/Grsync/V12.pm view on Meta::CPAN
MYDan::Agent::Load->new(
node => $host,
sp => $path{sp}, dp => $load,
)->run( %{$this->{agent}}, %o,
( defined $o{cc} ) ? ()
: ( 'chown' => undef, 'chmod' => undef )
);
};
my $stat = $@ ? "FAIL $@" : 'OK';
print "$host <= localhost: $stat\n";
lib/MYDan/Agent/Grsync/V12.pm view on Meta::CPAN
return -f $code && ( $code = do $code ) && ref $code eq 'CODE'
? &$code( @_ ) : \@_;
};
my @argv;
map{ push( @argv, "--$_", $o{$_} ) if defined $o{$_} }qw( chown chmod );
push( @argv, "--cc" ) if $o{cc};
my %query = (
code => 'dump',
argv => &$argv( 'dump',$load || $path{sp} , '--path', $path{dp}, @argv ),
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
Copy/Copy.pm view on Meta::CPAN
if (my $err = xs_copy($src, $dst, $mbs, $preserve)){
return;
}else{
if ($preserve){
# These are included in FSCatalogInfo
# chown $srcuid, $srcgid, $src;
# chmod ($srcmode & 07777), $src;
# utime $srcatime, $srcmtime, $src;
}
return 1;
}
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
t/10client-read.t view on Meta::CPAN
# On Debian:
# adduser -d /tmp/imaptest imaptest
# /etc/cram-md5.pwd:
# imaptest<tab>testje
# touch /var/mail/imaptest
# chown imaptest.users /var/mail/imaptest
# chmod 0664 /var/mail/imaptest # user running the tests
# .... and a running imapd
#
# On SuSE 8.2
# useradd -d /tmp/imaptest imaptest
# /etc/cram-md5.pwd:
# imaptest<tab>testje
# touch /var/spool/mail/imaptest
# chown imaptest.users /var/mail/imaptest
# chmod 0664 /var/mail/imaptest # user running the tests
# .... and a running imapd, which requires the start of xinetd and
# enabling the imap service via YaST2
use strict;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Mail/Decency/ContentFilter/CRM114.pm view on Meta::CPAN
:good_threshold: /10.0/
:spam_threshold: /-5.0/
Now allow your decency filter user write-access to the config dir
chown -R mailuser:mailgroup /var/spool/crm114
=head2 TRAIN
Train your first mails into crm like this.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Mail/IspMailGate/Filter/PGP.pm view on Meta::CPAN
su
mkdir ~ispmailgate/.pgp
cp ~info/.pgp/pubring.pgp ~ispmailgate/.pgp
cp ~info/.pgp/secring.pgp ~ispmailgate/.pgp
cp ~info/.pgp/randseed.bin ~ispmailgate/.pgp
chown -R ispmailgate ~ispmailgate/.pgp
chgrp -R ispmailgate ~ispmailgate/.pgp
chmod 755 ~ispmailgate/.pgp
chmod 600 ~ispmailgate/.pgp/*
If you don't have an appropriate keyring, you can instead create a new
view all matches for this distribution
view release on metacpan or search on metacpan
karmad-exim view on Meta::CPAN
}
else {
$gid = $socketgroup;
}
chown($uid, $gid, $sockaddr)
or die "chown($socketuser=$uid, $socketgroup=$gid, $sockaddr) failed";
}
elsif ($socketuser or $socketgroup) {
warn "Cannot change socket owner as non-root.";
}
karmad-exim view on Meta::CPAN
=item --socketuser
=item --socketgroup
Who to listen as; defaults to 'nobody'. The socket file
will be chowned to this user and group. You probably don't
need to set this.
=item --socketmode
Mode to chmod the socket. You probably don't need to set
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
\t chmod 600 "\$(DESTDIR)\$(MD_CONFDIR)/mimedefang-ip-key" 2>/dev/null || true; \\
\tfi
install_spool:
\t\$(MKPATH) \$(DESTDIR)\$(MD_SPOOLDIR) \$(DESTDIR)\$(MD_QUARANTINEDIR)
\tchown \$(MD_DEFANGUSER) \$(DESTDIR)\$(MD_SPOOLDIR) 2>/dev/null || true
\tchown \$(MD_DEFANGUSER) \$(DESTDIR)\$(MD_QUARANTINEDIR) 2>/dev/null || true
\tchmod 0700 \$(DESTDIR)\$(MD_SPOOLDIR)
\tchmod 0700 \$(DESTDIR)\$(MD_QUARANTINEDIR)
install-redhat: install
\t\$(MKPATH) \$(DESTDIR)\$(MD_SYSCONFDIR)/rc.d/init.d
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Mail/Milter/Authentication.pm view on Meta::CPAN
open my $outf, '>', $config->{'error_log'} || die "Could not create error log: $!\n";;
close $outf;
}
if ( $user ) {
my ($login,$pass,$uid,$gid) = getpwnam($user);
chown $uid, $gid, $config->{'error_log'};
}
}
if ( exists( $config->{'chroot'} ) ) {
_warn('Chroot to ' . $config->{'chroot'});
$srvargs{'chroot'} = $config->{'chroot'};
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Mail/POP3/Folder/mbox.pm view on Meta::CPAN
unless (flock $self->{LOCK_FH}, LOCK_EX|LOCK_NB) {
unlink $lockfile;
return;
}
chmod 0600, $lockfile;
chown $self->{CLIENT_USER_ID}, $self->{MAILGROUP}, $lockfile;
my $oldfh = select $self->{LOCK_FH};
$| = 1;
select $oldfh;
$self->_lock_refresh;
# stat the file to get its size, this is checked before closing
view all matches for this distribution
view release on metacpan or search on metacpan
qmailrem/FAQ view on Meta::CPAN
4.10. How do I change which account controls an address? I set up
~alias/.qmail-www, but qmail is looking at ~www/.qmail instead.
Answer: If you do
# chown root ~www
then qmail will no longer consider www to be a user; see qmail-getpw.0.
For more precise control over address assignments, see qmail-users.0.
view all matches for this distribution
view release on metacpan or search on metacpan
print("spfd (PID $$): Listening on UNIX socket '$socket_path'.\n");
#$0 = "spfd listening on UNIX socket $socket_path";
$socket_user = normalize_uid($socket_user);
$socket_group = normalize_gid($socket_group);
chown($socket_user, $socket_group, $socket_path)
or die("Unable to chown($socket_user, $socket_group) socket '$socket_path'")
if $socket_user != -1 or $socket_path != -1;
chmod(oct($socket_perms), $socket_path)
or die("Unable to chmod($socket_perms) socket '$socket_path': $!")
if defined($socket_perms);
view all matches for this distribution