Debian Configuration :: When Root Crontab Is Edited The Execute Flag Is Removed?

Mar 3, 2011

I have been having trouble setting up a daily backup script with cron. It would basically never worked. Searched the net for answers but didn't find anything. I finally figured it out !! When root crontab is edited the execute flag is removed from #/var/spool/cron/crontabs/root. I change it with #chmod a+x /var/spool/cron/crontabs/root and all is good.

View 5 Replies


ADVERTISEMENT

General :: Crontab Not Working \ Edited Crontab File Using Crontab -e?

Apr 27, 2010

I am using Linux 64 bit Redhat Linux. I am trying to setup simple crontab as follow...1. Edited crontab file using crontab -e2. Listed the file once to verify it using crontab -l. This will display as.. 18 5 * * 2-3 ksh $HOME/testScript.sh > $HOME/testscript.out3. Logged in a root and restarted cron deamon using "/etc/init.d/crond restart"As per my understanding now my testScript should start running at 5:18 am Thuesday

View 3 Replies View Related

Debian Configuration :: Edited Xorg.conf, Now Lost Some Keyboard Functionality?

Jul 8, 2011

I tried to edit my xorg.conf to try and encourage Debian to handle my joypad better (stop recognising it as a mouse). However, it didn't work and i couldn't get back into X.So, i entered recovery mode and deleted the contents of xorg.conf,got back into X and then edited xorg.conf back to how it was.Right so far so good.Yet, now i cannot use the backlash key in keyboard shortcuts. I have a number of shortcuts set up to incorporate this key and they no longer work, neither in GNOME nor Openbox

View 2 Replies View Related

OpenSUSE Install :: GRUB Chainloading Removed Boot-flag

Dec 13, 2009

I had my BIOS complaing that there were no OS. (worked since releaseday of 11.2).

partition setup:

sda1 : primary : swap
sda2 : primary : ext3 : Kubuntu
sda3 : primary : ext3 : opensuse (flagged as bootable)
sda5 : logical
sda6 : logical

opensuses GRUB is primary and Kubuntus is chainloaded.

The problem occurred after I tried to boot kubuntu for the first time since I installed opensuse. Kubuntu didn't boot. so I probably set up chainloading wrong. No big deal, this I can fix.

The big problem was that after trying to boot Kubuntu no OS was marked as "Boot" in MBR. This is VERY strange. somehow the boot-flag is removed!

After setting the boot-flag (with a live-CD) everything works again. I can reproduce this.

I've tried to find answers but could'nt find any.

Is GRUB supposed to remove the boot-flag when chainloading? have I found a bug?

View 9 Replies View Related

Server :: Samba Adds Execute Flag To All New Files

Jan 19, 2010

We have started using ACLs on our fileserver and we are having a problem with getting Samba to behave correctly. When we create a file in Linux, the permissions and ACLs are set correctly. Files are set to 640 and directories are set to 750. However, when we create it in Windows through Samba, regular files are being set with 650 and directories are set to 770. It's adding execute on files and execute+write to directories for groups.

View 2 Replies View Related

Debian Configuration :: Untar Periodically Using Crontab ?

Jan 17, 2010

how to untar a file name /opt/Backup/abc.tar.gz2 periodically with crontab in debian. My Script name is abc.sh and i write it as

crontab -e
*/2 * * * * /bin/sh/ /opt/Bachup/abc.sh
while my abc.sh file is as under
#!/bin/sh
tar -xvf /opt/Backup/abc.tar.gz2

But it did not give any result. When i run it as sh abc.sh. it works succefully. but not in the crontab.

View 4 Replies View Related

Debian Configuration :: Shutdown Laptop When AC Plug Is Removed?

Jul 22, 2010

I'm running a Debian on a laptop (actually a netbook: Asus EEE 1001PX) as a cheap homeserver. However I'd like it to automatically "shutdown -h NOW" when I remove the AC plug (switch it off at the wall). Otherwise I have to ssh to it and call it myself, and that just sucks Can I somehow detect the removal of AC power and upon that run a script ?

View 8 Replies View Related

Ubuntu Servers :: After Using Crontab With /etc/crontab / Giving Error "can't Find Command Root"?

Aug 26, 2010

I have a question about using crontab with /etc/crontab...

I had a cron job that I needed to run as root. At the time I thought that sticking it in /etc/crontab would be a good idea. However, I used the crontab command to edit /etc/crontab, which I guess is not standard procedure? Specifically, I configured /etc/crontab as my local user's crontab (i.e. sudo crontab /etc/crontab) then added my cron job as I would a local user crontab (i.e. sudo crontab -e).

Originally, my cron job looked like this:

30 * * * * root /my/batch/script &> /dev/null

After adding the new cron job I started seeing errors. Something to the effect of "can't find command root" or something similar. So I removed the 'root' user definition from the cron job and the job started running fine. However, because this is /etc/crontab, there are other system related cron jobs that have been defined to run under the root account (e.g. "17 * * * * root cd / && run-parts --report /etc/cron.hourly" runs as root, etc.). So these pre-existing system cron jobs, which up until now have been running smoothly, are now generating "can't find command root" errors. But I think that the system cron jobs _are_ successfully being run someplace because logrotate seems to be working.

So what I _think_ is happening is that /etc/crontab is being run twice: once as the system crontab, and once as my sudoed local user's crontab. When I run crontab -l I see nothing, but when I run sudo crontab -l I can see the contents of /etc/crontab. I am reluctant to delete my sudoed local user's crontab, because then in the process I would be deleting the system crontab, and I do not know how I should restore the system crontab's contents. (I am still not sure as to the most appropriate way to edit the system crontab).

How can I get out of this mess? I want /etc/crontab to go back to the way it was before--running _once_ as the system crontab. As for my new cron job, I'm willing to reconfigure it anywhere so long as I am still able to run it as root. Any ideas? (I am using Ubuntu 8.04 Server LTE)

View 2 Replies View Related

General :: Crontab Path When Execute Job

Apr 1, 2010

I have and entry in a crontab for my user (appadmin) that when it executes it does not start with the proper path. It needs to start as the appadmin user as appadmin owns all the directories for glassfish. However, once glassfish restarts, the hudson application cannot find the default JDK. I get an error. If I initiate the restart via command line, all works as it should. I believe it has something to do with PATH in the crontab but am not sure what I need to set the PATH to in crontab.

View 1 Replies View Related

General :: Get Crontab To Execute Process Every 10 Minutes?

Jan 31, 2011

I am trying to get a process ( SARG access log report tool ) to run every 10 minutes but I cannot get it to work.
Here is the content of the crontab file
______________________________
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command

[code]....

View 5 Replies View Related

Debian Configuration :: Unable To Execute Aclocal For PHP 5.6.10

Jun 22, 2015

OS: Debian 8.1
Php: 5.6.10
Apache: 2.4.12

My question is I trying to install php5 and add mcrypt,, but it is unable to run "aclocal" command. It show this message.

I have check with the path of /etc/profile, I'm sure that I have added the path as below. Beside that, before "aclocal" command I able to run another command which is "phpize". It is able to run successfully, after I added the path as below...

View 2 Replies View Related

General :: Script Don't Execute Itself Using Crontab Although It Works Manually?

May 26, 2010

One of my script don't execute itself using crontab although it works manually.

=> /var/log/cron
/var/log/cron show these 2 lignes at sheduled time
May 26 09:59:01 COMPUTER crond[26439]: (root) CMD (/usr/local/bin/script)

[code]....

View 6 Replies View Related

Debian :: Modify To Automatically Grant Root Privileges And Execute Commands When Starts?

Aug 22, 2010

I'm connected to the internet using a wireless router. Each time I boot, I have to grant root privileges and type in a shell: iwconfig wlan0 essid linksys key dhclient wlan0 Isn't there a file(or location) that I can modify to automatically grant root privileges and execute these commands when debian starts? Something like autoexec.bat in windows.

Something else I'd like to mention is when I execute iwconfig.... for the first time, I get this incomplete result:

IEEE 802.11bg  ESSID:"linksys"
Mode:Managed  Access Point: Not-Associated   Tx-Power=27 dBm
Retry  long limit:7   RTS thr:off   Fragment thr:off
Encryption key***********
Power Management:off

[Code]...

View 4 Replies View Related

Debian Configuration :: Configure To Automatically Use Wine To Execute Using The ./executable.exe Format?

Nov 5, 2010

I've recently been trying to restore a Debian installation back to it's previous state after a serious operation system crash. Efforts are largely going well however I've run into problems since reinstalling Wine. Previously I could execute a Windows executable by simply entering ./executable.exe in the bash shell but this no longer seems to work as now I have to include the "wine" command in front of the executable. how to configure Debian to automatically use Wine to execute using the ./executable.exe format?

View 1 Replies View Related

Red Hat / Fedora :: No Crontab For Root?

Oct 28, 2010

I am setting my cron to work. I am in the roo account/ So first I type as vi crontab -e. Then it ask me type "visual" for normal mode and do that then I type the following as below 1 * * * * root usr/local/testClient/runClient.sh>/usr/local/testClient/cron1.log and press esc type wq. Then I restart the cron service /etc/init.d/crond stop and /etc/init.d/crond start. Lastly when I type crontab -l it tells me no crontab for root.

View 2 Replies View Related

Ubuntu Servers :: Crontab "randomly" Doesn't Execute

Aug 23, 2010

I am running ubuntu 10.04 as a web/file server. I have set up several cron jobs in the past which until recently were executing normally. However, a few days ago, cron jobs stopped executing after a restart. I was able to fix the problem by deleting and reentering the cron jobs, but only until the next restart. ps -ef lists cron.

Summary:
1.) Cron was working --jobs executed without error and restarts worked fine
2.) Cron jobs stopped executing after a restart about a week ago --ps -e still lists cron
3.) Removing all cron jobs and reentering them by copying and pasting fixes until next restart
4.) Cron job syntax is known to be correct since they were executing before this problem arose.

View 5 Replies View Related

General :: Use Crontab -e To Set It Up Under The Root Account?

Jul 16, 2010

I have set up my crontab and whilst Im logged in and it works (It runs my shell script), however when Im not logged in, the script does not run. Initially I set the time/date to 0 0 * * * (Midnight every day), as this did not work, I tested it with to 0 * * * * (every hour) whilst logged in and the script starts.

I use crontab -e to set it up under the root account..Im sure you dont have to be logged in for it to run?, but maybe im missing a step or just overdosing on Linux and need a holiday:-)

View 3 Replies View Related

Ubuntu :: Crontab Command Requires The Root?

Feb 3, 2011

I tried scheduling a task using crontab -e and added the line:

Code:

58 23 3 2 4 /usr/bin/freshclam --verbose --log=/home/EXISTING DIR where I have permissions

The timing was simply a test run. My syslog gives the following error:

Code:

(CRON) error (grandchild #4309 failed with exit status 62).

I also tried to add to root crontab as below, but got the same error.

Code:

sudo crontab -u root -e a

View 9 Replies View Related

CentOS 5 :: Crontab - As Root - Cannot Pop-up Message Windows

Apr 15, 2009

When I setup crontab as a local user (settings shown below), then it can pop-up a xmessage windows * * * * * DISPLAY=:0.0 /usr/bin/xmessage -center "warning message here" but when I switch to root, and setup the same things in crontab, why it cannot pop-up a xmessage windows? Any special limitation for root to use crontab?

View 2 Replies View Related

Debian Configuration :: Only Root Can See Scanner?

Aug 20, 2010

Having successfully installed SANE and gotten a scan from my ancient Mustek scanner, I thought I had it setup. But that was running in the root terminal window. When I try to run xscanimage from GIMP in my normal user account it doesn't start up. Running xscanimage in a normal terminal it says it can't see any scanners. Yes, I added my user account to the scanner group. What else needs to be done to let a normal non-root user access the scanner?

View 4 Replies View Related

Ubuntu :: Run Rsnapshot From Cron Via Root's Crontab File

Nov 21, 2010

I am trying to run rsnapshot from cron via root's crontab file (crontab -e). If I run rsnapshot from the command line with sudo it works perfectly, however, if I run it from cron:

Code:
* * * * * /usr/bin/rsnapshot hourly >/tmp/crontab.out 2>/tmp/crontab.err
This does not work. The crontab.err file shows:

[Code]....

View 2 Replies View Related

Debian Configuration :: How To Auto-start GUI As Root

Sep 28, 2015

I have a "time-server". It's sending time to different devices through different ports/protocols. The problem is that it has no operator and that makes some extra difficulties.

Now when i try to start it using terminal Code: Select allsudo ./myprogram works fine and

Code: Select all./myprogram doesn't work.

It is so because without sudo i have no access to ports. As a result If i add my program to System->Preferences->Startup Applications it has the same problem. So i need to start it as root, auto-start, right after auto-login to system but without entering password cause nobody will do it.

Also I need to start ntpd but it also asks password sometimes I've tried googles but it offer a few ways with entering password that isn't suitable for me or writing some scripts/changing system files but with no example I'm afraid to break it all. So is there a way to start Myprogram and NTPD as root with no password entering?

My system is Debian 6.0.10 Squeeze, Kernel 2.6.32-5-686

View 12 Replies View Related

Debian Configuration :: Can Only Suspend / Hibernate As Root

Oct 28, 2015

Installed Debian 8.2 a while back, and I've been having issues with getting the machine to suspend correctly. If I try to put it to sleep when logged in to my regular user account the screen just goes black and then the computer hangs. However if I put it to sleep as root everything works fine. I do this by running this command (as root):

Code: Select allsystemctl suspend

What can I do about this? Worked fine on Debian wheezy..

Btw, just found this in the dmesg log. Connected perhaps..?

Code: Select all[    6.863018] ACPI Warning: SystemIO range 0x00000000000018e0-0x00000000000018ff conflicts with OpRegion 0x00000000000018e0-0x00000000000018ef (\_SB_.PCI0.SBUS.SMBI) (20140424/utaddress-258)
[    6.863028] ACPI:

If an ACPI driver is available for this device, you should use it instead of the native driver

View 7 Replies View Related

Debian Configuration :: Root Drive Full

Jan 27, 2016

I think my root drive is 100% full causing strange problems with my video server. What steps can I use to see what's taking up the room on the drive and perhaps identify files that can safely be deleted?

Code: Select allroot@lenny:/# df -h
Filesystem               Size  Used Avail Use% Mounted on
/dev/sda2                 55G   53G     0 100% /
udev                      10M     0   10M   0% /dev
tmpfs                    793M  1.1M  792M   1% /run

[code]...

View 14 Replies View Related

Debian Configuration :: Root Password Debootstrap And Ssh

Feb 11, 2010

For my dissertation I created a debootstrap install of Lenny. When I boot this system I just can login with root without a password. When I want to ssh this machine with the debootstrap install I can't just login with root. I'm asked for a password which I don't have.

So I created one with passwd root and after that I can connect to the machine with ssh and the given password. But the machine still logs in with without a password.

View 3 Replies View Related

Debian Configuration :: Gksu/su-to-root To Run In Terminal Possible?

Jan 17, 2011

I'm configuring some security and i'd like to run arpon to a specific device everytime wicd connects.So, if Wicd connects to a wireless, i'd launch gksu arpon -d -i eth2 (for example.) But this doesn't work, because it seems that gksu only works for X apps.I found that if i do: gnome-terminal -e 'sudo arpon -d -i eth2' It works, but it leaves me with a terminal window open, and i'd like to be asked for a password gksu style.I've also tried this: gksu -- arpon -d -i eth2which also works, but the program quits right after it's started.Am i missing something here?

View 14 Replies View Related

Debian Configuration :: Allow Root Login In Gnome?

Feb 17, 2011

We have setup Squeeze a Test machine , just for some tests, without network, Internet etc. and we need to allow root login in Gnome.
We've changed /etc/gdm3/daemon.conf:[security]
AllowRoot=truebut still doesn't work.

View 4 Replies View Related

Debian Configuration :: Root Passwd Not Working

Jun 25, 2011

my debian laptop this morning ,saw that the update manager had updates..97 of them??? then when tried to view them the package manager freezes and becomes unresponsive. needed to do a few things and found my root password is NOT working. this all happened at the same time, i wonder if its related? have i been hacked? is this something new? cant reset root password (tried two methodeds with no luck) and cant view the updates altho i question 97 new updates are needed.

View 7 Replies View Related

Debian Configuration :: Allow Root In Ssh On Wheezy Usb-hdd LIVE

Jul 15, 2011

I try to allow root login in ssh on wheezy usb-hdd LIVE using this script in config/chroot_local-hooks:

This script was working well during squeeze usb-hdd live creation.

View 5 Replies View Related

Debian Configuration :: Resizing Partitions - Put To The Root Partition

Jan 23, 2016

Is there a way where I can take like 50GB from my home folder (I have 375 avail., but using only 22GB) and put it to the root partition? Twice now my system has almost ran out of space on root, so luckly I was able to clear out old stuff so I don't have login issues after finding the hardway the first round lol. I just want to make sure I can login with out being forced back out because root don't have space to let me login.

View 11 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved