Displaying 20 results from an estimated 30000 matches similar to: "Change smbpasswd in a cron job"
2006 Feb 20
3
Smbpasswd in a cron job
Hi list
For a project we are trying to change the samba password automatically
in a cron job. Since smbpasswd doesn't allow the password to be entered
otherwise than though the console (user input). We found a solution to
the input part though expect. But as thing go expect doesn't work in a
cron job since it has no tty.
Is there anyone who can point us the right way to a solution.
2011 Jun 22
1
Change passwd backend over cron: what happens if changes while reading?
hi,
I want to use two backends f?r DoveCot. One generated file from the LDAP
tree, and the real LDAP.
The first backend is generated from a cronjob thats reads the whole ldap
server and converts them into a DoveCot passwd file.
I red in the Wiki, if the user password isn't correct, than DoveCot asks
the second backend (LDAP). Is this correct? Because, the the user can
change his password,
2005 Jun 28
2
Running DOS program in a cron job
Hi,
I'm trying to run a DOS program within a cron job. After much trial-and-error I settled on the following approach:
- rm -r ~/.wine
- call wine without any arguments, this lets wine generate a default configuration in ~/.wine
- change ~/.wine/config: set GraphicsDriver to ttydrv instead of x11drv
- the cron job consists of a shell script that runs the DOS program with "wcmd
2009 May 26
3
Permissions and security
Hi list
I have trouble setting up the system permissions to be secure. Here my
basic setup.
2 groups: users and staff
/home/user should have the permissions user:users rwx------
/mnt/staff should have the permissions user:staff rwxrwx---
For the last one users should'nt have access.
I test with fx.: user=staffuser, primarygroup: users, member of group: staff
If i setup the permissions to
2012 Mar 05
5
cron job not running
hello list,
I am attempting to backup a centos 5.4 (x86_64) server running mysql
with a cron job. Here's how the cron job looks:
[root at cloud:/home/bluethundr/backupdb] #crontab -l
* 3 * * * /usr/bin/mysqldump jfwiki >
/home/bluethundr/backupdb/wiki-$(date +%Y%m%d).sql
However if I run the command from the command line it seems to work fine.
If I grep syslog for cron this is what
2004 Jul 06
1
Re: cron job madness
Hey,
> check-update sounds better than putting yum update
in a cron job. Only a mad man would do that!
Are the cAos and CentOS releases THAT BAD?
> Much better to run a daily cron which rsyncs your
local patch repository.
So must one have your own local repository to avoid
being labeled as a madman?
In which one of the RedHad reference books can I find
this?
Just curious.
Rick
2006 Jan 20
2
cron job install/update problems: tcltk can't find display (installing e.g., pbatR)
On Fedora Core Linux 4, I have a cron job that causes R to update all
packages and install new ones. Lately, I notice in the log that some
packages fail to install. These are ones that assume X is running.
For example, the pbatR install requires tcltk to be loaded, and then
the install fails because in a cron job, there is no DISPLAY
environment. I suppose the same happens if you try to
2006 Jan 20
2
cron job install/update problems: tcltk can't find display (installing e.g., pbatR)
On Fedora Core Linux 4, I have a cron job that causes R to update all
packages and install new ones. Lately, I notice in the log that some
packages fail to install. These are ones that assume X is running.
For example, the pbatR install requires tcltk to be loaded, and then
the install fails because in a cron job, there is no DISPLAY
environment. I suppose the same happens if you try to
2013 Jan 29
1
Cron job based on gateway
Hi
Is there a way for puppet to create cron job on each of my node based on my
gateway''s IP ?
bala@bala-desktop:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
10.0.2.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
0.0.0.0
2008 Sep 17
4
cron job not working
Here's a perl script that works when I run it manually. But when I
run it via cron, it won't create the directory. But worse than that,
an email isn't sent to the account running the job. So I'm not
getting an error, but it does work when I run it manually.
If I put an obvious error in the script, cron does generate an
email giving me the STDERR.
What could it be?
=== Al
2019 Nov 15
1
Cron - log when job ends?
Hello,
In trying to resolve a problem with a cron job, we can see when the job starts
by looking in the /var/log/cron log file. However, I was asked if when the job
ends could also be logged. (It seems to be something that crops up every so
often over the years.)
I found on the 'net this article
https://serverfault.com/questions/248915/crontab-is-there-any-log-with-begin-and-end-time
which
2009 May 27
2
Cron Job?
Hi All,
How does one create a cron job that runs commands like:
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=xxx.com -update
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=yyy.com -update
Say every 15 mins?
-Jason
2007 Apr 20
2
R in cron job: X problems
I'd like to use an R CMD BATCH script as part of a chron job that is set
up to run every hour.
The trouble is that the script creates a graphical output in a file via
png(), and apparently this in turn works through X.
When cron invokes the job, no X server is available -- I suppose that
the DISPLAY variable is not set -- and so R exits with an error message
in the output file. (If I run the
2017 Jan 02
2
cron job failures with a perl script containing Astro::Time
Everyone,
I am building a gateway server with a new : CentOS Linux release
7.3.1611 (Core)??with 3.10.0-514.2.2.el7.x86_64 kernel.
Everything was going find, but I was not able to get a particular
cronjob to function properly that contained a perl script with
Astro::Time as an include file. Astro::Time was installed with the use
of the cpan module downloaded from the Centos repositories.
The
2008 Nov 19
4
Configuring Rsync to run without any user input or Cron job.
Hi !
I would like to know if it's possible for Rsync to automatically mirror a
folder and it's content from one deamon to another. (or one client to a
deamon) Basically I want users to drag and drop files in a folder and Rsync
to mirror these files as soon as it sees them. A cron or schedule task is
not a viable solution since we can receive files any time of night or day
and we need to
2009 Dec 14
5
Cron job? or something else? help..
Hello,
i have a certain issue at hand that i'm trying to solve.
there's a certain command that i need to execute 10 minutes after boot.
how can i set that? im not very expert with cron jobs but can it be done
that way? i know that cronjob works on specified time but how can i set
it to run with '10 min after startup" as a condition ?
2013 Jul 30
3
run script on cron job only run on first Saturdat every month???
we have CENTOS 5.5 on DELL server.? One of our script need run on first Saturday every month.
?We have following setup on cron job but it run every Saturday.?
15 04 1-7 * 6 /home/app/oracle/backup/monthlybk.sh
? Any one know how to fix it?
Thanks.
2010 Jan 01
1
Rsync, CP and Cron job workaround?
Hi,
I have a Linux based NAS, which unfortunately appears to be a bit
underpowered, heres why I say that:
5 PC's backup to the NAS on a weekly full with hourly incrementals 7 days a
week between 7am and 6pm (2 week retention policy). There is no problem with
that.
Where there is a problem is getting that data off the NAS to the USB
attached storage for off site (2 disks swapped weekly). The
2004 Jul 11
2
Bug#254681: logcheck-database: su from cron job not necessarily to "nobody"
Package: logcheck-database
Version: 1.2.23
Followup-For: Bug #254681
Please generalize "nobody" to "[_[:alnum:]-]+", as some cron jobs
su to other users:
Jul 11 06:51:16 tux su[10385]: + ??? root:hinfo
Jul 11 06:57:25 tux su[29801]: + ??? root:www-data
Thanks.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500,
2004 Apr 02
3
cron job to reboot GS101
Does any one regularly reboot GS101? It sometimes lost registration with
* and needs to be reboot.
What is the best way to do it by cron?
David Kwok