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 ...


22

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 ...


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 ...


15

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 ...


15

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 \ ...


14

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 ...


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 ...


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 ...


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

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

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 ...


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

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" ...


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

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

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, ...


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 ...


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 am personaly using a mailer agent called nullmailer. It acts as a mail proxy, and transfers all mails sent to root to a mail address of your choice. You need to set its settings in conf files under /etc/nullmailer. Basically : give it your mail porvider address and credentials, and the adress you want to receive the root emails on. You can install it ...


6

I recomend 2 gui-programs to you: bleach bit ubuntu tweak. bleach-bit is the "ccleaner"-equivalent for linux, so you can figure what it can do: sudo apt-get install bleachbit from console to install. ubuntu tweak is kinda a "tweak-ui"/software center/gconf/etc what we are interested here is the "package cleaner" option: To install ubuntu-tweak: ...


6

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 ...


6

Login as root or su to get root prompt type visudo an editor will open find a line says root ALL=(ALL) ALL add one with your username below that user ALL=(ALL) ALL Type ctrl+x Type Y to the prompt


6

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 ...


6

Yes, use can use tmux or, the older screen. The following are excerpts of their respective man pages: tmux: tmux is a terminal multiplexer: it enables a number of terminals to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached. When tmux is ...


5

When you run a software installation command (e.g., aptitude, apt-get, synaptic or the Ubuntu Software Centre), the file /var/lib/dpkg/lock is locked to prevent several instances of the command to run concurrently. The reason to do this is that software installation has to modify vital system files, and concurrent modification may result in some changes not ...


5

Hide administrators At least one administrative user is needed on each system because in Ubuntu a distinct root account is disabled*. Nevertheless it would be possible to hide this user "administrator" from gdm login by adding the following line in /etc/gdm/custom.conf: [greeter] Exclude=nobody,administrator We may further restrict read access of ...


5

Given that ubuntu-standard is a metapackage, removing it do not imply the removing of any other package, nor the removing of some functionality: $ sudo apt-get --simulate purge popularity-contest Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: popularity-contest* ...


4

During boot press SHIFT to get into the GRUB menu, then select boot into recovery mode, "Drop to the root shell" and the just re-add yourself to the admin group with usermod including the -a option to append the groups to the current ones: usermod -a -G admin USER Check http://www.psychocats.net/ubuntu/resetpassword for more details for a different case.



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