≡ Menu

sudo command

HowTo: Reload (re-read) Partition Table In Ubuntu Linux

How do I reload the partition table in Ubuntu Linux without rebooting the systems?
[click to continue…]

HowTo: Save A File In Vim / Vi Without Root Permission

This happens lot of times. I login as a normal user and start to edit httpd.conf or lighttpd.conf or named.conf in vim / vi text editor. However, I'm not able to save changes due to permission issue (all config files are owned by root). How do I save file without creating a temporary file (/tmp/httpd.conf) and then move the same (mv /tmp/httpd.conf /etc/httpd) as root using vim / vi itself?
[click to continue…]

Start / Stop / Restart Postfix Mail Server

How do I start / stop / restart my postfix mail server under Linux or UNIX operating systems?
[click to continue…]

Mac OS x Restart Apache Web Server

How do I restart Apache web server under Mac OS X operating systems?
[click to continue…]

I've brand new Ubuntu Linux server (Apache + PHP5 FastCGI + Lighttpd image only server) installed for my wordpress, mediawiki and vBullietin software. I can load forntpage of all software but user cannot edit any wiki pages or post anything and I get the following error in log file:

PHP Fatal error: Allowed Memory Size of 20971520 Bytes exhausted (tried to allocate 131072 bytes) in /usr/share/mediawiki/includes/OutputHandler.php on line 81

How do I fix this problem?
[click to continue…]

Mac OS X Display Access Warnings Message For The Login Window

I know how to display notice of a computer's ownership, to warn against unauthorized access, under Linux gnome desktop. How do I display similar message under Apple Mac OS X to remind authorized users of their consent to monitoring?
[click to continue…]

CentOS / Red Hat: Sudo Allows People In Group Admin To Run All Commands

I like the way Ubuntu Linux works - all people in admin groups should able to run all commands after running it via sudo "command-name". How do I setup sudo under CentOS or Red Hat Enterprise Linux to allow all members of the 'admin' group to run all commands?
[click to continue…]

HowTo: UNIX Restart Apache Server

How do I restart Apache web server under UNIX operating systems using command line or over the ssh session?
[click to continue…]

UNIX / Linux: Send E-mail When sudo Runs

I'm not told to use the root user to perform activities that do not require it. I've configured sudo for myself and for other web developers so that they can restart MySQL or Apache web server. How do I send email when sudo run by one of my user? How do I keep track of user login done via sudo command?
[click to continue…]

Debian / Ubuntu Linux: Clear the Package Cache

Q. I've Debian Linux installed on 10 GB hard disk and noticed that /var/cache/apt/archives/ has lots of file taking my precious 1Gb disk space. Can I remove those file safely without causing any side effect on my setup?
[click to continue…]