Ubuntu :: Cron Job As Root Priveleged Access?
Sep 22, 2010
I have two users in my system. Admin(Root) , and "student". I am making a bootable USB with Ubuntu 10.04 with two partitions. What i need is a cron-job who copies some files that the student has made(from the first partition) onto a partition which he is not allowed to access. The way i thought it should be done was making a root cron-job which mounts the drive and then copies the documents, and maybe unmounts it again.
The problem with this is that, when i mount it, wouldnt it be accessible to the "student" as well then? Since i give him sudo-rights and mounts the drive in the background for him? Alternatively i could unount it straight after the copying is done, but then it would do this too often I guess.
View 2 Replies
ADVERTISEMENT
Feb 16, 2010
I have set up a cron in /var/spool/cron/root
*/15 * * * * /usr/bin/phplist.sh
I can see in /var/log/cron that it is running every 15 minutes but it has no effect. It is not doing the commands in the bash script.
If I run /usr/bin/phplist.sh right in the shell it works great.
View 3 Replies
View Related
Jan 28, 2010
Cron for root does not run,it's 8.04LTS ubuntu server,however Cron runs for other users,Can anyone help?i've checked many times that i have the right syntax.
View 9 Replies
View Related
Jun 25, 2011
I have an external usb hard drive that spins down every 10 min. The commands in 'hdparm' do nothing to override the internal settings. So, I wrote a script to touch a file every 5 minutes, and it will run as root because of the mount command, and I want it to run for every user. The script is executable, owned by root, and root is the group, with 755 permissions.
no_sleep.sh in /usr/sbin:
Code:
#!/bin/bash
# Script to keep external drive from spinning down
diskmounted=$(mount | grep Backup | wc -c)
[Code]....
View 4 Replies
View Related
Feb 10, 2010
I am unable to run my cron tab job without root password.I made a little research on the forums and appearantly it should be changed.Must I change "passwd" part with my root password?
View 9 Replies
View Related
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
Feb 3, 2010
I'm getting the following messages sent to my root account mailbox. It appears to be reporting an issue finding ntpdate, however when running the following command:
aptitude show ntpdate | grep State
It shows as installed and any ntpdate commands work with no issues, so I have no idea why this is getting regularly reported?
From root@mydomain.co.uk Wed Feb 03 18:20:01 2010
Return-path: <root@mydomain.co.uk>
Envelope-to: root@mydomain.co.uk
Delivery-date: Wed, 03 Feb 2010 18:20:01 +0000
[Code]....
View 9 Replies
View Related
Apr 15, 2010
I have done these steps. still its not working.
1. Log in as the root user.
2. I have created a file with name "reminder" in /root directory.
3. Create a /etc/cron.daily directory. Add a file called "taxrem", which reads a text file from home directory, so write a command in the "taxrem" : "cat ~/reminder"
4. Add command to /etc/crontab file. Based on the conditions I want, such as : 5 13 * * * root run-parts /etc/cron.daily
There is no entry in the cron.deny file. Still I have not get any response on that scheduled time.
View 1 Replies
View Related
Apr 16, 2011
I have Compaq Presario CQ62-215DX notebook (laptop) computer with built in image of Windows 7. I use partitioning tool to create partition of 250GB hard drive. I created these partitions as NTFS partition. My issue is after creating partition of 75GB whereby I want to install Ubuntu using ubuntu-10.10-desktop-i386.iso file from dvd drive; I cant install.
I use ext4 file system to install ubuntu and mountpoint is root After user setup it stops at this point:
UBUNTU CRON [9354]: (root) CMD (cd/run-patsreport/etc/cron.hourly)
It doesnt install ubuntu on separate partition. how to install ubuntu on separate logical partition? Windows 7 is in primary partition.
View 1 Replies
View Related
Jan 25, 2010
Take a peek at this:
Code:
Jan 23 20:15:01 localhost CRON[22629]: pam_unix(cron:session): session opened for user root by (uid=0)
Jan 23 20:15:01 localhost CRON[22629]: pam_unix(cron:session): session closed for user root
[code]....
View 3 Replies
View Related
Mar 25, 2010
The system crontab (/etc/crontab) uses the same format, except that the username for the command is specified after the time and date fields and before the command.
[code]...
Every hour, I get an e-mail complaining about the first line of the crontab:
[code]...
I get the same complaint from the other entries: It looks to me as if cron, or anacron, is trying to execute the user (root) as a command. Predictably, the shell doesn't like it, so barfs and triggers an e-mail about it. Why is this not doing what the man page says it should do? The 2nd problem I believe is related to exim, not cron. The e-mails I'm getting above are being bounced from my ISP because they are directed to root@myisp.com, rather than my regular e-mail address. When the message bounces, it bounces to my regular e-mail address. In /etc/aliases, I have root: [URL]... and in etc/email-addresses I have root: [URL]... Adding the entry to /etc/email-addresses allowed the bounce to find me because the sender's address is [URL]... but how can I get cron to send these messages to me in the first place, instead of root?
View 11 Replies
View Related
Feb 19, 2011
I was using the latest stable release of Debian, dual-booted alongside Windows Vista, with the GNOME desktop, installed via netinst, trying to build and install a library that I knew and trusted, when suddenly I couldn't open the Root Terminal. I clicked the link (in Applications->Accessories (I think, whatever the top one is)->Root Terminal), and in the taskbar I saw an item that said "Starting Root Terminal". A few seconds later, that went away, but the terminal still wasn't open. I tried the regular user terminal, to see the same thing happen. Unsure of what was happening, I tried restarting my computer, since that's always the first step you should take in computer problems.
When I restarted, GNOME wouldn't start. The screen would flash a bit for a few seconds, then a dialog box would appear over a background of static that said "The greeter application is crashing. Attempting another one...".t would then go back to the DOS-style kernel, wait a second, and then the same thing would happen. After several of that, I would get a blue screen which said something to the effect of "It has been detected that the desktop environment has crashed six times in the past 30 seconds.
Waiting two minutes before trying again." When it did that, I tried logging in as root to assess the problem. I gave it the correct password, but it said that it was an incorrect login. After several tries (to ensure I didn't mistype the password), I logged in as myself. Same problem. I tried the su command, with the correct password, and it said it couldn't authorise it.
After a lengthy conversation with a friend of mine who was very good with computers, he basically summarised that he had no clue, but that his best guess would be a virus. Upon running the Linux installer, I found the Repair option. Not being particularly familiar with Linux, I used it simply to backup my important files onto a flash drive. I then tried running the Install option, in an attempt to simply write over my existing Linux and make it new again. The installer, however, consistently froze up when trying to start the partitioner, on the "Checking disks..." stage. I figured it was a problem with my partition. In my naivete, I simply used the Windows tools to clear that partition... It destroyed GRUB too, so I couldn't run any OS. I figured my computer was pretty well screwed, and at that point just decided to bring it into the shop and have them completely wipe it.
my computer was backed up onto an external hard driven I brought it back, I reinstalled Windows. Upon restart, it said that it was still looking for GRUB, which made no sense to me. After messing around with it a bit, I decided to just reinstall Linux too. To my lack of surprise, that fixed the problem. Both OS' now ran just fine. The first thing I did on Debian was to install the Clam Anti-Virus, which I understood to be one of the best Linux anti-viruses. However, within about 10 hours, got the same problem as originally. I wasn't doing any of the same things, and between the lack of consistency in activities and the fact that I had an anti-virus running,figured it wasn't a virus. Not knowing what to do, I just left it and have been using Windows since.
View 8 Replies
View Related
Apr 29, 2011
Can anyone tell me how i change the default domain name for cron?everything i cron runs it emails from and to user@com.com
this leaves me with a massive list of failed mails in postfix.i have mailto on my main crontab but i cant do it on all of them.
View 1 Replies
View Related
Feb 25, 2010
It seems that cron is not upgrading my Ubuntu 8.04 LTS Server, no GUI installed. I changed /etc/crontab and watched apt running:
Code:
ps -A | grep apt
showed it for a long time,
Code:
sudo tcpdump tcp
showed communication with canonical sites,
but:
Code:
top
did not show any apt using CPU
[code].....
View 2 Replies
View Related
Sep 19, 2010
I put in my cron entries to run my backup script which rsyncs my data to my 2nd drive, however on a hunch I checked my backup drive which mounts automatically via fstab and I realize it had not ran in a while. I checked cron and there were no entries for it. I got to wondering if I should ever be worried about a cron update coming down and over-writing my existing cron file with the backup entries in it to run.
View 2 Replies
View Related
Jan 29, 2011
I have added some executable scripts to /etc/cron.daily but don't get the stdout/stderr output from them as mail (or anywhere else I have found). At least one of them is running (because I can see that it has added a file to the disk).
The peculiar thing is that I do get the output from /etc/cron.daily/0logwatch (part of the logwatch package) as an email each day.
The MAILTO line in /etc/crontab is "MAILTO=root" (unchanged from default). Same for /etc/anacrontab.
I do have an alias at the end of /etc/aliases which redirects root's mail to my own account, but this alias works fine for mail I send manually. (It also appears to work fine for the output from the file /etc/cron.daily/0logwatch.)
View 3 Replies
View Related
Feb 9, 2011
Is my vixie-cron broken? i have "0-59 * * * * root /usr/sbin/logrotate /etc/logrotate.conf" but it is not running in /etc/cron.d.
Code:
View 2 Replies
View Related
Jul 15, 2010
I am a Newbie to Server platform. Just installed Ubuntu 9.04 server, As my Lappy not supporting OEL 4. I was shocked to see that there is no GUI. Anyhow, in that it is showing to Login. I enter the Username and password which was created during Installation on Ubuntu server. It was fine. How to goto Root?
I typed su - root and entered password
Says Authentication failure.
How can I overcome this? While Installation where ever it asks for a password I use the same one.
View 1 Replies
View Related
Jul 26, 2010
So, my company has a new web-based VPN client. I go to a specified URL, log in, and then a Java widget starts and tries to install some stuff. I get this screen:
It's asking me for my root password. I know how to set the root password, but I want to avoid that and use sudo instead. But as you can see from the image, the install is initiated in such a way as to prevent me from doing anything but entering my root password. And apparently my sudo/admin password isn't the same as my root password, because it doesn't work. And I can't access the executable from any other way. Is logging in as root briefly my only option here?
View 6 Replies
View Related
Aug 29, 2010
I recently installed Ubuntu 10.04 32bit on my laptop. I am trying to learn the command line and also install software via the command line. I type in su and hit enter it asks me for my password and I type that in. The password fails, why is this? I am the one who set this up and installed the OS. Now I am logged in using my normal user account when doing this from the GUI
View 8 Replies
View Related
Sep 16, 2010
i installed xampp using a tutorial posted here, but now the issue is i dont have priviledge to that directory. currently the xampp folder is located in /opt/
and i cant seem to fig out how i can get privil to that folder. (my user is "nate" not root
View 2 Replies
View Related
Dec 2, 2010
I'm having some problems getting photos off of my camera that I am thinking I can work with if I can access the photos on the camera as superuser. However I don't understand how Ubuntu (gnome) mounts cameras now, they don't show up as a mounted drive and I can't access (or find it at all) with 'sudo nautilus.'
[edit] Oh, also, the camera shows up if using nautilus not as a superuser.
View 2 Replies
View Related
Jul 14, 2011
I've just installed Zenmap and was wondering could anybody show me how to get root access.
View 4 Replies
View Related
Mar 21, 2010
I'm a new comer to Linux world, and I wish I can find help with some difficulties that I might face.
I have a machine with Window 7 and Ubuntu (dual boot), windows 7 is installed on C drive and ubuntu installed on D drive, when I'm on Window, I put a folder named folder1 on D drive root beside (not inside) the main ubuntu folder. when I open ubuntu I can't see that file on D drive, I tried to search for it but couldn't find it, how can I access this file please ?
View 8 Replies
View Related
Apr 23, 2010
It's been a few years since I last installed Ubuntu. I searched the forums and can't seem to find the answer. I want to be able to do a "su root" and have root access. I know Ubuntu wants you to do the sudo command, and I know you can really mess things up being root. I know I got this to work before. What do I need to do?
View 3 Replies
View Related
Aug 18, 2010
I'm wondering if there is some way for me to install Synergy to my home directory on a school computer where I don't have root access.
View 3 Replies
View Related
Sep 25, 2010
I have been trying to run the following commands several times in the last coupl weeks, to no avail."su" to get to root...then while root "apt-get update" for updatesalso"sudo apt-get update"BOTH areenied even with root or user-admin pwd.States that either permission is denied and/or frequently states that the command "apt-get" does not exist
View 4 Replies
View Related
Dec 10, 2010
I am traying to install an application on ubuntu, it asks me that I have to get root access. How can I get this previlige?
View 9 Replies
View Related
Dec 11, 2010
I'm running an Ubuntu 9.04 Minimal server and trying to get MySQL to work correctly. But when I try to access MySQL with the root user it doesn't want to.
Code:
mysql -u root -p
Enter password:
[code]....
View 4 Replies
View Related
Jan 5, 2011
I've heard that you shouldn't allow root access over ssh; what's the big deal?if a user account who has sudo privileges is cracked already, what's the difference?I allow root access over ssh, but I use a 30 character random password and disable all other accounts. Is this unsafe?
View 12 Replies
View Related