Ubuntu :: Way To Run CRON Job For Something That 'normal' Users Need To Run As SUDO?
Jun 5, 2010
As per subject, what's the best way to run a CRON job for something that "normal" users need to run as SUDO? There is a problem with the internal clock on my PC so at a regular time (every hour or day for example) I want to sync with my Network Time server. I use "sudo ntpdate time.bgr.local" as it is now and have to enter my user's password for it to work.I know root is disabled by default and would like to keep it that way if possible but if I have to enable it and then add it to root's cron list the so be it but would prefer not to.
View 5 Replies
ADVERTISEMENT
Jan 5, 2011
I am trying to setup a system to allow normal users to execute a command without using sudo. Is this possible?
View 6 Replies
View Related
Nov 1, 2010
We are trying to set up a classroom training environment where our SIG can hold classes for prospective converts from Microsoft/Mac. The ten machines will have /home/student01..10 and /home/linsig01..10 as users. We want /home/student01 to be able to explore and sudo so they can learn to administer their personal machines at home. We don't want them to be able to modify (sudo) /home/linsig01. I've seen the tutorial on Access Control Lists but I'd like other input so we get it right the first time.
View 3 Replies
View Related
Jan 18, 2011
How can i see history of all sudo users and all root users in fedora 13 ? history command only shows one users history ?
View 5 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 16, 2010
I am making a backup on an ntfs disk, mounted with:
using the following command:
Running this (or rather the shell script containing it) from the command line is OK, but if I run it as a cron job, I get thousands of messages:
(without line breaks, actually).
These files are all ordinary files made under Windows; the above should read "offici�le stukken", and from the command line it does, but not in cron.
I guess I need to set an environment variable, but which one?
View 1 Replies
View Related
Oct 31, 2010
Let's suppose that a machine has three users:
(1) david
(2) dan
(3) joel
The computer now restarts and during the log-in process, I choose to login into dan's account.
At this point, when I am logged in into dan's account, will Ubuntu run the crontab jobs that belong to david / joel?
View 4 Replies
View Related
Mar 30, 2010
right now all of our users are able to log in to other user using su as root.Because root privilege is necessary for our work. we r using LDAP authentication(centralized)..
What we want to do to disable su usage to log in as other user?
View 1 Replies
View Related
May 13, 2010
We have just installed VNC. It seems to work fine. If we connect to a remote system using VNC, on say DISPLAY 5, it works and we can run our applications. If another person wants to view this session, they can also connect to DISPLAY 5, and it is fine.
However, if you are just sitting at your own system, without using VNC, and someone connects to your system using VNC to DISPLAY 0, so you can show them what you are doing, they do not see your session, they see a plain startup session, not the session in which you are running your applications... How do you let VNC users see your normal non-VNC session? Have I configured something wrongly? We are new to VNC!
View 5 Replies
View Related
Nov 28, 2010
I have shared two external harddrives via samba on ubuntu, but only I can access it. The reason being is because I have logged into linux, and become the owner of the external hdd's. On the permission properties, I can see that the group I have created every other user under has "No Folder Access", and if I change this it reverts back instantly. So frustrating, I've tried to chmod it which hasn't done a thing. The owner of the external hdd's seems to be the only person who can access it over samba.Is there anyway I can get normal users to just read and write to external hdd's?
View 9 Replies
View Related
Aug 2, 2011
I have a desktop environment with Apache2.(If someone asks why desktop to run Apache2, its because the desktop must display a local website)When I update the html files from a windows box it is being copied in a home/user folder.Cron now has to copy the files with r to the localhost area.sudo cp -R home/myself/Downloads/* /var/www/ works fine:The script containing just that one line is in a file in my /home/myself/Documents folder named: copy_site_localhost.Cron entry in turn was created with the command: sudo crontab -e and the entry is:*/10 * * * * /home/myself/Documents/copy_site_localhostThe error in the syslog file in /var/logs is as follows:
.......CRON[1234] (root) CMD (home/myself/Documents?copy_site_localhost)
.......CRON[1236] error (grandchild #1234 failed with exit status126)
.......CRON{1236] info (No MTA installed, disregarding output)
[code]....
View 1 Replies
View Related
Sep 11, 2010
Here's what I want to do: install ubuntu on a laptop and then create a normal user so that the user could install the normal upgrades without using the root account (or getting root privileges via sudo).
I know that this can be done by adding the user to the admin group, but this has (at least) two bad side effects:
1. The user can use sudo to gain root access. (And then do everything: install or remove programs...)
2. The update-manager doesn't seem to appear in the panel. (In stead it opens in the background.)
I could easily make a script that downloads and installs the upgrades automaticly, but I'd like to give the user a chance to choose when to do all this. So that it's not done for example when the user is using slow mobile connection.
View 2 Replies
View Related
Apr 29, 2011
I read one release goal for wheezy which I had read few days ago, dnssec for wheezy.
[url]
Now the only thing I understood is this will make it harder for the bad guys to give any fake packages while I'm updating from a debian mirror .
Am I correct in assuming that ?
Also do I just have to install the autotrust package and wait for the dnssec-conf to be packaged and installed, correct ?
View 4 Replies
View Related
Dec 14, 2010
I have created 2 users and changed their secondary group to grp1, then changed permission for a directory dir1 to 770(no permission for others) and group to grp1.
The both normal users are not able to access dir1. How is it possible to access that Dir using general permission (770).
View 2 Replies
View Related
Jul 1, 2010
how to export normal unix user to ldap I've unbuntu ldap server with some local users. I want to export all my local users to ldap database as a ldap users. Or if there is any configuration so that when ever a normal user is created then automatically an ldap user with the same name as the normal user will be created
View 5 Replies
View Related
Jan 24, 2011
Is it possible to install Rawhide packages in F14 for normal users ? I see that Rawhide have F15 (as in Fedora 15) so it doesn't install. How can you bypass this? And what repo to use if you want to install rawhide?
View 9 Replies
View Related
Nov 18, 2010
I have install RHEL5 and created normal user as "test". When I login as root user, I can run crontab command but when I login as test user, I can't run crontab command and throws error as "cron/test: Permission denied". how to enable crontab command for test user as well?
View 3 Replies
View Related
Dec 30, 2010
I've a Linux box with few users (with shell). I would like to prevent normal users see all the processes running on the box. How can I implement this?
View 1 Replies
View Related
Jan 6, 2010
I have a file server that is an NIS client. User home directories are auto-mounted from another server. Users are not able to run cron jobs. The /var/log/cron logs says:
Jan 6 14:33:01 inclination crond[3217]: (username) ORPHAN (no passwd entry)
I tried adding an entry in /etc/passwd, /etc/group, and /etc/shadow but the test script I have still doesn't seem to run although cron thinks it did. The log entry for these attempts looks like:
Jan 6 15:30:01 inclination crond[4312]: (username) CMD (/home/username/test-script)
Now root does seem to be able to run cron jobs with no problem. My test script works fine from cron when runs as root. I suspect there's an issue with how I have NIS configured but I can't find any info. The test script runs fine from the command line when logged in as myself.
View 2 Replies
View Related
May 20, 2011
i want to mount NTFS by normal users so i used the following entry in fstab /dev/sda6 /media/Mostafa ntfs-3g noauto,exec,rw,user 0 0 however when i try to mount the partition i get the following error Unable to mount Mostafa
Error mounting: mount exited with exit code 1: helper failed with:
Error opening '/dev/sda6': Permission denied
Failed to mount '/dev/sda6': Permission denied
Please check '/dev/sda6' and the ntfs-3g binary permissions,
and the mounting user ID. More explanation is provided at
NTFS-3G Questions at Tuxera
[Code]...
View 6 Replies
View Related
Dec 23, 2010
as a normal user when I click logout from a KDE session nothing happens and I can't re-launch logout again, shutdown is doing the same.I have just upgraded to fc14 from fc13 yesterday tried to delete .kde folder and it has not been succesful tried to create another user and log to kde session and the new user also failed to logout or shutdown Root user is able to logout and shutdown I have no probs on GNOME for root or users.
View 1 Replies
View Related
Jul 1, 2010
I have set up an NFS server on Fedora 13, and I am connecting to it with Fedora 13 and Ubuntu 10.
On both clients the command
Code:
works fine. On Fedora I can get into the directory with Nautilus and have read/write permissions as specified in /etc/exports on the server, but on Ubuntu I can only get into it from a sudo'd command line.
The ownership of the file on Fedora is "nobody" and on Ubuntu it's "user #500", with only people in the "500" group having access to it.
Obviously the permissions can't be changed on the client, but with the Fedora box being able to read/write to it with no problems I'm not sure what else I can do on the server to let normal users on the Ubuntu box read it.
View 1 Replies
View Related
Apr 15, 2010
I was adding me and my bud to a new group I created, but I used -G instead of -g as the tutorial suggested, I think this removed me from all other groups and put me in the new one. The same with my bud. Now I dont have sudo privileges, nor does my bud, and we have not set a password for the root account.
Code:
sudo ls -l
USER@SERVER:/var$ sudo password for USER:
USER is not in the sudoers file. this incident will be reported.
USER@SERVER:/var$
View 2 Replies
View Related
Oct 5, 2010
I have a 10.04 machine that su and sudo will not work on. I am also unable to login as a user other than root.
I am haven't been to figure out what might the problem.
Obviously there is some kind of problem validating users, but I can't find it.
View 7 Replies
View Related
Aug 2, 2011
I can't get sudo users-admin to run. This is the error I get:
Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported aborting...
View 2 Replies
View Related
Oct 11, 2010
How can I allow normal users to mount a tmpfs under any subdirectory owned by them?
View 3 Replies
View Related
Dec 4, 2010
i have installed Salix 13.1 LXDE version (Salix 13.1 is compatible with Slackware 13.1). I must use various external hard disks formatted with NTFS. The hard disks are automatically recognized and mounted with PCmanFM file manager, but only user root can write on them. How can I allow normal users to write on automounted external ntfs drives?
View 3 Replies
View Related
Jun 20, 2011
Is it possible to restrict users with 'sudo' from accessing certain directories? Rather than just exclude cd and ls from the sudo privileges, that is.
View 5 Replies
View Related
Jul 1, 2011
I have a box with about 30-40 users on it, and I need to prevent a certain group of users from using sudo at all. Is this even possible.
View 4 Replies
View Related
Aug 14, 2010
Is there a way to allow users from a remote account (say, those connecting to the X server from a remote location) to sudo? What kind of account do you need to add to /etc/sudoers to be able to allow this to happen?
View 1 Replies
View Related