Ubuntu :: Scheduling Automatic Updates As Root Without User Intervention
May 30, 2010
I'm setting up some computers as kiosks, and would to scedule updates to be downloaded and installed without the user having to enter their sudo password, perhaps at midnight or something like this. What is the quickest way to do this on ubuntu?
I'm trying to get my backup script to run every week, but as a normal user, and not as root as it is done when the script is placed in /etc/cron.weekly. Anacron fits my needs in the sense that it doesn't require my computer to always be on, as opposed to cron, and will just run my script when it can, but at the most each week. Cron fits my needs in the sense that I can run the script as the user I am logged in as. The particular script backs up my home directory with rdiff-backup, and it is very convenient that I am the owner of that backup, since when root performs the backup, I am unable to browse my own backup files and must use "sudo" to do this.
Is there a way to let me use the feature of anacron that allows my computer to not always be on, but still get a weekly execution, and also run the script as a normal (non-root) user?
I am working on a large program in C to run on Puppy Linux. I have multiple pthreads running. I want to be able to set the pthread SCHED_POLICY and priority in my program but I want a user to be able to run the program without root privilege. Using a sticky bit and root ownership gives the user too much power because they will be able to write and compile their own scripts. Is there a way to use 'sudo' when I set the thread parameters from my program or something like this?
I have a machine that I leave on overnight, and noticed this morning that it had suspended. Interestingly enough, the syslog makes it look like it's resumed during the same second that its suspended (or it might just be that it's very early here and I'm reading this wrong). I am certain that I didn't catch it that quickly. I've attached the relevant bits:
Code: Aug 1 04:49:49 JonE6400 rtkit-daemon[1697]: The canary thread is apparently starving. Taking action. Aug 1 04:49:49 JonE6400 kernel: [73610.312707] PM: Syncing filesystems ... done. Aug 1 04:49:49 JonE6400 kernel: [73610.422831] PM: Preparing system for mem sleep Aug 1 04:49:49 JonE6400 kernel: [73610.422834] Freezing user space processes ... (elapsed 0.00 seconds) done. [Code].........
Ubunto 8.4, running on 2nd partition on Apple Intel iMac. Several months ago, following a routine update, I found I could no longer install routine updates. Investigating further, I find "You don't have permissions to..." then sudo: /etc/sudoers is owned by gid 1002, should be 0. That's not me! I am the owner and root user of this computer. How could this get changed? How can I change it back to me? The Linux platform of the computer has not been exposed to the net except for Ubuntu forums and updates. No one else has used this computer.
building an install cd or dvd media that will automatically install the Linux software on a client pc. There is no network connectivity so the client can only be loaded with Linux from CD or DVD media. The crux of the matter is that I can not automatically install the Linux software on client WITHOUT typing linux ks=cdrom:/ks.cfg at the boot prompt.
I want to avoid any user prompts and just have the software install with the RPMS that I need for this client pc at the boot prompt. Actually, when the boot prompt commences, I would like the software install to start with no user intervention. I've tried several different methods in isolinux.cfg, but the OS always wants boot prompt for the cdrom. Can the boot prompt information be read automatically from the isolinux.cfg with out user intervention? I'm looking for the same behavior as a LIVE CD that kicks off with no boot prompts after a few seconds. Here's a copy of my isolinux.cfg
default linux prompt 1 timeout 600 display boot.msg F1 boot.msg F2 options.msg F3 general.msg F4 param.msg [Code]....
I haven't used my VB for a few weeks however all of a sudden it refuses to work for my normal non-root user. It's almost as if it can't find libraries in the /opt/VirtualBox directory. Initially it refused to start completely so I linked the required libs into /usr/lib64 ( yip real hack. Then it started but a vm would not start, and comes up with an error about a missing lib again which is definitely there. My non-root user is in the vb group and nothing besides system updates has changed. vb 3.2.10 slack64-current.
So, it is my understanding that Ubuntu's automatic updates do not install ANY updates that are not "important security updates." For example, it did not upgrade me to Firefox 4 automatically; I had to do it myself (Don't all new browser versions usually contain new security features/patches? Oh well...That is a separate question entirely).
ANYWAY, is there some way to get the latest stable versions of all of my open-source software automatically (or at least all at once, on command), instead of just security updates? It seems silly to have to install new versions for every program manually.
Also, related/side question: Now that I have installed Firefox 4 myself (via apt-get by adding the mozilla-stable PPA), will I stop getting security updates for Firefox through the standard Ubuntu update manager?
Actually, a really thorough explanation of the whole automatic update system (or a link to one) would be great too.
I wondered if there is a way for quick installation, what I mean to install without any details given by user, just type one command and installation will begin and untill finish. Installation will not ask any details from user (like the user is passing next next next ... to all installation screens).
My 10.x install crashed after automatic updates. So I installed the latest version after none of the "help" helped.Anyway in 11.04 I can no longer put icons on my desktop or find icons to start tasks I need like a terminal window for example. Wine doesn't even know it is wine anymore. Nothing is intuitive or automatic.Is there a simple way to find all the stuff or is this version set back to eliminate cometition with apple and windows. I really enjoyed how useful ubuntu was and need the speed and usefulness back like right now.
I am running on 11.2 and i have added some repositories, like Packman, KDE 4.4 Factory, KDE 4.4 Community.I would like to have this packages automatically updated which seems not to happen. If I look into software management every now and then, I always have to "switch system packages" to get the updates via the the updated applet.So I was wondering, if it could be due to a wrong priority for those repositories? Is a high or a low priority the point where the applet is looking from which repo to update? If not, what is this priority used for?
Ubuntu 9.10 Karmic Koala. Dial-up Internet connection. I turned off automatic updates before ever connecting to the Internet. When I checked for updates manually a few days ago, forty-some files downloaded. A few of them were quite large, perhaps a megabyte or two. Several of the files near the top of the list were marked as "Failed". There were no failures farther down the list.
After they were all downloaded, Update Manager tells me that 315 updates are available, under the two headings, "Important security updates" and "Recommended updates". The "Changes" box at the bottom of the window says that the list of changes failed to download. I ran the Update Manager again but it quickly told me (in effect) that there was nothing new since the previous check, and nothing more was downloaded. The descriptions of the updates are horribly inadequate. And I *am* looking at the long decriptions in the box at the bottom. For most updates the information is not adequate to determine what it does, whether it would have any effect on my particular system, or whether it would benefit me. For example, near the top of the list of 315 updates:
Is It possible to change a process running in root-user to non-root-user by setting suid / uid / euid / gid etc... I so please instruct how, when and wat to set in order to change a process running in root-user to non-root user
I tried to partition with P Magic but my windows xp would not boot afterwards, so I have gone cold turkey.....wiped the drive and installed linux. Debian is now the third one I've looked at and hope to stay here. Couple questions right off
1) Is firewall installed with debian installation or do I have to do something else? 2) are updates automatic?
To comply with standards I need to change the root pw every so often. However, I really don't have a need to know the root password; as the only thing using root, is for ssh authenticating via ssh keys. What I want to do is automate the root password change monthly via a cron job, to a random value. Is there a way to do this without knowing the previous password?
So, I logged into my laptop this morning and tried to run a VirtualBox VM and it barked that I had not setup the kernel module yet. I found this odd since I was running it fine yesterday... so I was poking around my system and noticed that there was a yum update yesterday
Code: Jun 07 14:03:21 Updated: 1:gdm-3.0.4-1.fc15.x86_64 Jun 07 14:03:22 Updated: 1:gdm-plugin-fingerprint-3.0.4-1.fc15.x86_64 Jun 07 14:03:35 Installed: kernel-debug-devel-2.6.38.7-30.fc15.x86_64 Jun 07 14:03:37 Updated: kernel-headers-2.6.38.7-30.fc15.x86_64
I have just installed Centos 5, and created two user account in it. how can i set it up that it will automaticaly boot to one of the user acount upon bootup?
I no longer have access to my root desktop. On a session I attempted to change the root username but i apparently assigned it a wrong directory that does not exist. When I rebooted with my new root username, i was instead recognised as a simple user (no root privileges). I tried the console to change to "old" root but root password is not accepted and there is no way to access to sudoer files. it seems that inserting a new username requires root privileges and i am back to square one. Simply logging with old root username and password after restart gives me a blank screen with nothing on it and cannot even reboot.
i used opensuse 11.1 ...there is option for root user to create password for root...but for ubuntu i did not find anything like that...so how can i create root password....or how can i use root
However, the option to upgrade to 11.04 has recently become available in the Update Manager.
If I choose to follow this upgrade path, will my existing user settings such as nautilus shortcuts, wallpaper and other personalised settings be changed or reverted to default in any way?
Or will the upgrade execute, and leave everything looking and working exactly the same?
A friend of mine has told me to set a root password and use root (f.e. switching to su in terminal and work with root rights instead).Is there any way to unset the root password? I know how to use sudo now.
I've used ubuntu software centre a few times but not since I upgraded to the new Linux i686 software. Now though when I try to look for software on the centre for example click on games at the homescreen it just shows the loading screen and then does nothing. I've also noticed that since my software was upgraded to the new Linux i686 that I've had no automatic software updates. Sorry if you can't view the picture I'm not sure how to upload it but it's just a plain loading screen. I'm a linux virgin so if you ask me to find you software info by using terminal or other software than include instructions. file:///home/theo/Desktop/ubuntu%20software%20centre.png
I have a windows 7 ultimate host machine, installed oracle virtual box on it. Made a iso image to boot fr fedora. All this is fine when the installation is complete, it asks for reboot. Reboot done. Then I went to terminal. Did a SU - root to get into the root. Then I did a firstboot command to enter information. I created a user for myself and at the end rebooted the virtual box.
When it starts up, it does not show my user. It just shows "Automatic Login" and it logs in as Live System User. Even if I try to switch user then it gave me a authentication failure when I enter the credentials of the user which I created. If I try to create users manually using system administration, the user is lost after reboot. I have tried all possible steps...as instructed on the net.
i am having problems with privileges i have created a new user with my name, but i cant get root privileges on it. i need the same privileges as the root profile.
i just installed linux mandriva 2009. i set password for root and created a user account. when i try to login as root, after logging out as user, it does not allow me and gives the error "root logins are not allowed". even it does not show the root account. if i try to go to root from konsole terminal using su root, it allows to enter as a root but when i try to start the GUI with startx it gives error.not sure what to do and why i can't see my account in GUI mode
I found that if any usual user is logged into a NDS-tree, then _local_ root has full access to user's network shares, including the user's home directory located on remote Netware-server. Is it by design or have I missed something? Nevertheless in windows local admin has no access to network resources mounted of any other user. If you runas shell (as admin) then admin in principle can't "see" network shares which were mounted (connected) by other users - they are accessible ("visible") per session.
I am using mint 8 for a 2 weeks, I am noob to linux but I like Mint than any other linux distro which is great alternative to windows. I have a problem regarding password reseting.
1. My laptop automatically get logged in without asking user name and password.
2. I tried to change password for newly created user and root user using graphical way but it does not work.
2. I can perform administrator task using only OEM user which is default inbuilt user of mint.
How can make my laptop to ask password when mint get booted? How to change password for other users?