Displaying 20 results from an estimated 32 matches for "runuser".
Did you mean:
runner
2007 May 07
1
runuser: /dev/null permission denied when init script is run via service
Hi,
I have problem with runuser utility and permission to /dev/null. runuser is
called from init script. When init script is run /etc/init.d/callrec start, then
there are no problems with permissions, but when init script is called via
service callrec start. Then runuser starts complaining about permissions.
runuser: /dev/null:...
2015 Jun 02
3
daemon in /etc/init.d/functions creates no pifile?
Hi,
we started using centos7 to run kvm+libvirt.
For novnc to virtual machines I like to start
websockify as a daemon by libvirt (as a hook)
Under Debian I used the line:
# start-stop-daemon --start --chuid $RUNUSER --make-pidfile --pidfile $PIDFILE --startas $PROGRAM -- $OPTIONS
which creates a nice pidfile.
In Centos I figured out, to include /etc/init.d/functions and I tried:
# daemon --user $RUNUSER --pidfile=$PIDFILE $PROGRAM $OPTIONS
But this seems not to create a pidfile at all. It checks only if
a p...
2009 Dec 04
0
runuser: cannot set groups: Operation not permitted
Hi,
We have installed apatare and running the script aptare_agent, but it is giving error "runuser: cannot set groups: Operation not permitted" if we run it as aptare user. We have made this user the part of root group.
If we run the same script with root user there is no error. Any thought?
________________________________
This e-mail is the property of NaviSite, Inc. It is intended onl...
2015 Jun 02
1
daemon in /etc/init.d/functions creates no pifile?
...0, skotthof wrote:
>> Hi,
>>
>> we started using centos7 to run kvm+libvirt.
>> For novnc to virtual machines I like to start
>> websockify as a daemon by libvirt (as a hook)
>>
>> Under Debian I used the line:
>> # start-stop-daemon --start --chuid $RUNUSER --make-pidfile --pidfile
>> $PIDFILE --startas $PROGRAM -- $OPTIONS
>> which creates a nice pidfile.
>>
>> In Centos I figured out, to include /etc/init.d/functions and I tried:
>> # daemon --user $RUNUSER --pidfile=$PIDFILE $PROGRAM $OPTIONS
<snip>
Sorry I mis...
2006 Oct 23
1
$HOME variable not set from init script
...during system boot.
If you later login as root and run:
$ service mimedefang restart
then SA does indeed find the $HOME variable
I checked the /etc/init.d/mimedefang file and the chain of commands
seems to be this:
/etc/init.d/mimedefang -> daemon function from /etc/init.d/function ->
/sbin/runuser
SpamAssassin perl module is called from the mimedefang perl program.
I'm thinking that /sbin/runuser is the root cause of the problem.
My questions are:
- does /sbin/runuser set the $HOME at boot time?
- should /sbin/runuser be called with the -l option?
Thanks
Oliver
--
Oliver Schulze L....
2017 Jul 28
0
vncserver died
...tatus vncserver@:3.service
? vncserver@:3.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver at .service; enabled;
vendor preset: disabled)
Active: failed (Result: resources) since Fri 2017-07-28 13:31:15
EDT; 54s ago
Process: 19173 ExecStart=/usr/sbin/runuser -l root -c
/usr/bin/vncserver %i (code=exited, status=0/SUCCESS)
Process: 19170 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill %i >
/dev/null 2>&1 || : (code=exited, status=0/SUCCESS)
Jul 28 13:31:12 homebase.home.htt systemd[1]: Starting Remote desktop
service (VNC)...
Jul 28 13...
2015 Feb 08
2
Did you get my previous email? Not Spam.
On 08/02/15 06:51, Jason Long wrote:
> Thanks a lot.
>
> [root at printmah ~]# getent passwd jason
> jason:*:11303:10513:jason JASON:/home/JASONDOMAIN/jason:/bin/false
>
> But I can't login to Linux via AD username and it show me :
>
>
>
> Last login: Sun Feb 8 01:48:32 2015
> Could not chdir to home directory /home/JASONDOMAIN/jason: No such file or directory
2015 Feb 09
2
Did you get my previous email? Not Spam.
...smtp.postfix
> chsh polkit-1 sshd
> config-util postlogin su
> crond postlogin-ac sudo
> cups ppp sudo-i
> fingerprint-auth remote su-l
> fingerprint-auth-ac runuser system-auth
> ksu runuser-l system-auth-ac
> login setup systemd-user
> other smartcard-auth vlock
> passwd smartcard-auth-ac wbem
>
>
>
> What is your idea?
>
>...
2015 Jun 02
0
daemon in /etc/init.d/functions creates no pifile?
...un 02, 2015 at 11:06:59AM +0200, skotthof wrote:
> Hi,
>
> we started using centos7 to run kvm+libvirt.
> For novnc to virtual machines I like to start
> websockify as a daemon by libvirt (as a hook)
>
> Under Debian I used the line:
> # start-stop-daemon --start --chuid $RUNUSER --make-pidfile --pidfile $PIDFILE --startas $PROGRAM -- $OPTIONS
> which creates a nice pidfile.
>
> In Centos I figured out, to include /etc/init.d/functions and I tried:
> # daemon --user $RUNUSER --pidfile=$PIDFILE $PROGRAM $OPTIONS
>
> But this seems not to create a pidfile...
2009 Jan 06
1
Problems getting 1.6 to run with user asterisk and group asterisk
...o start it with:
asterisk -f -C /etc/asterisk/asterisk.conf
which results in:
Unable to open pid file '/var/run/asterisk.pid': Permission denied
Unable to bind socket to /var/run/asterisk.ctl: Permission denied
However, /etc/asterisk/asterisk.conf has:
astrundir => /var/run/asterisk
runuser = asterisk
rungroup = asterisk
The directory, user, and group exist. Permissions are fine. The only
way I can get it to run is to edit defaults.h and change:
#define DEFAULT_RUN_DIR "/var/run/asterisk"
#define DEFAULT_SOCKET "/var/run/asterisk/asterisk.ctl"
#define D...
2009 May 22
1
/etc/asterisk/startup.d
Does anybody think it would make sense for /etc/init.d/asterisk
to run /etc/asterisk/startup.d/*.sh on start like safe_asterisk
did?
Philipp Kempgen
--
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de
Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de
Videos of the AMOOCON VoIP
2015 Feb 09
0
Did you get my previous email? Not Spam.
...password-auth-ac smtp.postfix
chsh polkit-1 sshd
config-util postlogin su
crond postlogin-ac sudo
cups ppp sudo-i
fingerprint-auth remote su-l
fingerprint-auth-ac runuser system-auth
ksu runuser-l system-auth-ac
login setup systemd-user
other smartcard-auth vlock
passwd smartcard-auth-ac wbem
What is your idea?
Tnx.
On Sunday, February 8, 2015 12:49 A...
2015 Feb 09
0
Did you get my previous email? Not Spam.
...smtp.postfix
> chsh polkit-1 sshd
> config-util postlogin su
> crond postlogin-ac sudo
> cups ppp sudo-i
> fingerprint-auth remote su-l
> fingerprint-auth-ac runuser system-auth
> ksu runuser-l system-auth-ac
> login setup systemd-user
> other smartcard-auth vlock
> passwd smartcard-auth-ac wbem
>
>
>
> What is your idea?
>
>...
2017 May 25
2
Centos7 Cant start vncserver
...mctl -l status vncserver@:3
? vncserver@:3.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver at .service; enabled;
vendor preset: disabled)
Active: failed (Result: resources) since Thu 2017-05-25 12:31:13
EDT; 13s ago
Process: 5173 ExecStart=/usr/sbin/runuser -l root -c
/usr/bin/vncserver %i (code=exited, status=0/SUCCESS)
Process: 5170 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill %i >
/dev/null 2>&1 || : (code=exited, status=0/SUCCESS)
May 25 12:31:10 homebase.home.htt systemd[1]: Starting Remote desktop
service (VNC)...
May 25 12:...
2015 Jul 02
5
Asterisk 11 and pulseaudio setup as local user
>>I'm not sure that your question is clear. You'll probably want to be more specific.
>> What is pulse? You mention "as a user", are you talking about voicepulse.com ?
>> What are you trying to do with pulse?
>> What problem are you running into?
Sorry Rusty...
I am trying to get Asterisk 11 to co-exist with a centos 7 box that has
pulse audio running as
2010 Sep 19
0
A logging/graphing UPS client using rrdtool and UPS::Nut
...ool/lib/perl/5.8.9/i86pc-solaris-thread-multi/ /opt/rrdtool/lib/perl/5.8.9/);
use Getopt::Long;
use POSIX;
use RRDs;
use UPS::Nut;
use Pod::Usage;
use strict;
my $version = '0.99';
my $desc = "\nUPSwatch version $version : A NUT UPS monitoring tool using RRDtool\n";
my (%opts, $runuser, $pid,
$username, $password, $upshost,
$basedir, $htmldir, $rrd_file, $logfile,
$daychargegraph, $weekchargegraph,
$daypowergraph, $weekpowergraph,
$dayloadgraph, $weekloadgraph);
if (GetOptions(\%opts,
'foreground',
'username=s',...
2015 Jul 03
0
Asterisk 11 and pulseaudio setup as local user
...These are the errors I get.
I changed the following:
chown -R myuser:myuser /var/log/asterisk
chown -R myuser:myuser /var/lib/asterisk
chown -R myuser:myuser /var/spool/asterisk
chown -R myuser:myuser /var/run/asterisk
chown -R myuser:myuser /usr/lib/asterisk
edited asterisk.conf and uncommented runuser and rungroup and changed to
myuuser
Then I get the above error when running
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150703/76faab1b/attachment.html>
2016 Jul 13
0
vnc on C7
...*******************
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/usr/sbin/runuser -l ulkoenig -c "/usr/bin/vncserver %i -geometry
1280x1024"
PIDFile=/home/ulkoenig/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
[Install]
WantedBy=multi-user.target
*****************************************************************...
2018 Aug 01
0
Strange vncserver behavior
...s vncserver@:2.service
? vncserver@:2.service - Remote desktop service (VNC)
?? Loaded: loaded (/etc/systemd/system/vncserver@:2.service; disabled;
vendor preset: disabled)
?? Active: failed (Result: resources) since Wed 2018-08-01 08:45:19
EDT; 1min 8s ago
? Process: 2267 ExecStart=/usr/sbin/runuser -l root -c
/usr/bin/vncserver %i (code=exited, status=0/SUCCESS)
? Process: 2260 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill %i >
/dev/null 2>&1 || : (code=exited, status=0/SUCCESS)
Aug 01 08:45:14 localhost systemd[1]: Starting Remote desktop service
(VNC)...
Aug 01 08:45:19 lo...
2014 Jul 09
1
CentOS7: vncserver - desktop resolution
...-------------------------
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/sbin/runuser -l foo -c "/usr/bin/vncserver %i -geometry
1400x800 -nolisten tcp -localhost"
PIDFile=/home/foo/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
[Install]
WantedBy=multi-user.target
------------------------------------------
The de...