Tag archive for ‘user’

Renaming files with –– at the start

I’m making a post about this because I ran into this today and I couldn’t remember how to rename a file starting with — (two or double hyphens) in Linux (e.g. –index.html). The customer has obviously used a Windows FTP client to rename index.html to –index.html so it is out of their way, and now [...]

FreeBSD >Sending a Message to All Users on a System

You can use the wall command to send a message to every user on a system. General syntax of wall command is as follows: wall Message Message … …. .. When the message is complete, press Control-D. 1) To display message “Disk failure system will be down for 30 minute” to all users use wall [...]

find_free_dqentry(): Data block full but it shouldn’t.

Error: VFS: Error -5 occurred while creating quota. VFS: find_free_dqentry(): Data block full but it shouldn’t. Explanation: The error message “find_free_dqentry(): Data block full but it shouldn’t” appears in the server logs when the files “aquota.user and aquota.group” are mostly corrupted. The ‘fixquotas’ cannot read these files and thus increases CPU usage while quota update [...]

Apache give each user their own cgi-bin directory

Apache has public_html directory support. With this you specify the name of the directory which is appended onto a user’s home directory if a ~user request is received. For example http://domain.com/~rocky/file.html will be rocky’s home directory /home/rocky/public_html/file.html. Recently I took small part time job to setup web server for university. I want to give every [...]

Shell script to Finding ALL Superuser ( root ) Accounts under UNIX / Linux OSes

In Unix-style computer operating systems, root is the conventional name of the user who has all rights or permissions in all modes (single- or multi-user). The root user can do many things an ordinary user cannot, such as changing the ownership of files and binding to ports numbered below 1024. It is never good practice [...]

Ubuntu: Rename an Account [ User ID ]

How do I rename a user name from ‘tom’ to ‘jerry’ under Ubuntu Linux? You need to use the usermod command. It can modify the system account files (such as /etc/passwd) to reflect the changes that are specified on the command line. The syntax is as follows: usermod -l {new-login-name} {current-old-login-name} In this example, rename [...]

Linux Server Uptime

How to check the Linux Server Uptime? There are different ways to check the uptime of the Linux server like using the “top”  OR the “uptime” OR the “w” command. Following are some of them: root@host [~]# top c top – 15:50:20 up 2 days, 11:32, 1 user, load average: 0.00, 0.00, 0.00 root@host [~]# [...]

Unable to delete an email account from cPanel

The e-mail address postmaster@mydomain.com deleted successfully. Sorry, you do not have access to the domain mydomain.com The error message is displayed when you delete an email account of a domain from cPanel >> ‘Email Accounts’ that is either shifted under another users account OR usually happens when a domain is swapped from add-on domain to [...]

Plesk webmail + DB Error: connect failed

You may receive the following error message while accessing Webmail on a Plesk server: A fatal error has occurred DB Error: connect failed You need to make sure the ‘horde’ user is able to connect to the ‘horde’ database using the password mentioned in the file “/etc/psa/.webmail.shadow”. You have to create the file and specify [...]

Share screen session

Start screen using the command: $ screen -S <SessionName> The -S switch gives the session a name, which makes multiple screen sessions easier to manage. Allow multiuser access in the screen session: CTRL-A :multiuser on Grant permission to the guest user to access the screen session: CTRL-A :acladd <guest_user> The guest user can now connect [...]