Tag Info

Hot answers tagged

32

When was the machine turned on: uptime Example from my notebook: 20:06:33 up 1:50, 2 users, load average: 0.03, 0.04, 0.05 That is current time, uptime, amount of users and the load average. What programs run: Command line ps -ef|more GUI - System monitor (dash, system monitor): When the computer was resumed or sleep last what ...


23

You do not need a workaround, just change the policy to allow you to shut down without authenticating as admin for shutdown and reboot when multiple users are logged in. Edit the file /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy using your favorite text editor. You will need root permissions. Change the section relating to shutdown when ...


23

Type as below sudo system-config-printer


20

The purpose of the commands you mention is solely to save disk space. Furthermore, on most machines nowadays the savings would only amount to a tiny fraction of your disk space. So they're not very useful. Most common maintenance tasks are performed automatically by the system. If you're curious about them, the scripts that perform them are in /etc/cron.*. ...


19

If you can live without icons on your desktop, you can disable right click menu entirely through Nautilus' show_desktop option like this: gconftool-2 -t bool -s /apps/nautilus/preferences/show_desktop false Edit: Getting rid only of that menu entry would require patching the Nautilus source. The menu definition is in ...


16

Each log serves it's own purpose. It really depends on what you're trying to check for. Some common ones are outlined below: /var/log/auth.log - Information pertaining to authentication - including sudo/su activity /var/log/boot.log - All information during the booting process /var/log/crond.log - Information from cron daemon /var/log/messages - Typical ...


16

If this is a server I would strongly suggest you alias root to a real email address so you get your email delivered to your administrators It is as easy as adding # Person who should get root's mail root: all_administrators@mydomain.com to the end of /etc/aliases Alternatively you can configure mail to be aliased to your local username and then when ...


14

There is a better way. If you have dbus-send installed, you can shutdown via dbus without the need to escalate to root privileges. I can't remember the page where the documentation is, but one Archlinux user figured this out. Shutdown: dbus-send --system --print-reply --dest=org.freedesktop.Hal \ /org/freedesktop/Hal/devices/computer \ ...


13

Richard Holloway's answer is not actually the way PolickKit authorisations are meant to be granted. The files installed under /usr/share/polkit-1/actions are not meant to be modified. Instead, you should modify the authorities under /etc/polkit-1/localauthority/50-local.d. Here's how you do it for this question: Create a file named ...


13

First, however tempted you might ever get, never "log in with root". It's far too easy to break things beyond repair. Anyway, this is disable by default so you'd have to do a whole lot more to get to that point. /usr/ is owned by the root account so to write files in there you need to write them as root. Two methods (there are undoubtedly more but here are ...


12

I would argue that for a standard home installation, there is no need for you to be checking any logs regularly. Though they may be helpful in diagnosing a problem or filing a bug report.


12

Run service --status-all to get a list off all the Upstart services and their status. (It basically issues a status command for all the services.)


11

By default all members of admin group can use sudo to get root privileges: %admin ALL=(ALL) ALL


11

I have solved the issue by creating a new group for limited admin rights... name of that group is LimitedAdmins after that I updated the sudoers file as below. The line I appended is: %LimitedAdmins ALL=NOPASSWD: /usr/bin/apt-get*, /etc/init.d/apache2 restart This is the complete /etc/sudoers file: # This file MUST be edited with the 'visudo' command ...


10

To manage multiple machines from a central computer, you could try learning a system management platform such as Puppet. It allows you to manage multiple machines (puppets) from one main machine (puppetmaster). Depending on your scenario it might be a bit overkill, but it is an excellent tool to manage many machines from a central point of control. It also ...


9

Ubuntu Server Team recommend this 2 option: 1.- OpenSSH Server 2.- eBox is a web framework used to manage server application configuration. The modular design of eBox allows you to pick and choose which services you want to configure using eBox. see details here 3.- in ubuntu server 10.10 ebox was changed with Puppet is a cross platform framework ...


8

HAL seems to be now depcrecated and not installed in latest Ubuntu releases. You must use ConsoleKit and UPower dbus services to manage power state Shutdown: dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop Restart: dbus-send --system --print-reply ...


8

You can use the last command to check on boot times, reboots, suspends/resumes.


8

SSH via a password is less secure than SSH with a DSA/RSA certificate. Create a certificate with a password. Then give the sys admin account a different password. You will only be able to login via SSH if you have the certificate AND know the password associated with it. You can then use a different password for running sudo (the user's password). This ...


8

ntpdate is deprecated as of September 2012; apparently ntpd now has the ability to do one-time updates if needed, and ntpdate is based on "long-neglected" ntpd code. (News to me, since my system has ntpdate but not ntpd! I'll be fixing that presently; thanks for asking this question.) As for the difference between continuous versus periodic updates, I think ...


8

Following up on the comments above: Because the admin group doesn't exist on your system we are assuming you are running 12.04. To be able to administer your system with 12.04 you need your user-id to be in the sudo group. I was able to add a user-id to the sudo group as follows. Reboot using grub and select an entry for recovery mode. Select the "root" ...


8

Xubuntu For your case you have the Thunar file manager in which case you would use: gksu thunar or gksudo thunar Kubuntu If you had Kubuntu then the File manager would be Dolphin in which case you would use: kdesu dolphin or kdesudo dolphin Ubuntu / Mythbuntu / Edubuntu If you had Ubuntu you would use Nautilus as the File Manager and then would use: ...


8

Here is a list of free and paid control panels that are available for Ubuntu server Free CPanel Alternatives web://cp web://cp was where it all seems to have started for much of the open source world. It was written in php and the aim of it's single developer was to make a good quality control panel. web-cp is an Open Source solution ...


7

First of all let to point out that privileged actions are allowed for a non-root user through two different mechanisms. sudo PolicyKit The first one is used when you explicitly run a command with sudo or a menu item whose command is wrapped with gksu (like Synaptic Package Manager). In this case the password required is that of the invoking user, usually ...


7

I finally figured out why I was receiving the "usermod: cannot lock /etc/passwd; try again later" error message. The root cause of the issue had to do with the fact that when I booted into Recovery Mode, by default the filesystem was mounted as read-only. Because the filesystem was mounted as read-only, the adduser and usermod commands were not able to ...


7

You can use recovery mode to add the standard user to the admin group (which is now called sudo in 12.04). Below is a set of simple instructions copied from my personal website. Using Recovery Mode To Add Users To The Admin / Sudo Group First shutdown your computer. Then restart whilst holding shift on the keyboard to load grub menu. Select recovery ...


7

Well about 99% of all commands are shared between all Distros. This you must have very clear. With this I mean that what you learn in Red Hat, Fedora, Open Suse, Linux Mint, Debian, Gentoo and others, you have a VERY HIGH chance that you can use them in Ubuntu and Vice Versa. With this said, any place that teaches you some command (Like ls, cat, grep, ...


6

Delete or alter system files Alter the system settings Add or remove applications To do any of these you need the sudo password. So after installing your system you have your own account and start creating normal users. Do not tell them the sudo password and they can not alter these. All they can do is change values in their own home. If you want total ...


6

I don't know how to do that, but I presume that the desktop background is set via a GConf key. If so, you can run gconf-editor as root, find the relevant key, and set it as mandatory. Then, users won't be allowed to change its value.



Only top voted, non community-wiki answers of a minimum length are eligible