Tag: user

Linux / UNIX: Scanning network for open ports with nmap command

You can use nmap tool for this job. It is flexible in specifying targets. User can scan entire network or selected host or single server. Nmap is also useful to test your firewall rules. namp is metwork exploration tool and security / port scanner. According to nmap man page: It […]

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 […]

Script used to correct permission of files after suphp

Script used to correct permission of files after suphp #!/bin/bash # For some stupid reason, cPanel screws up the directory permissions. chmod 755 /opt/suphp find /opt/suphp -type d -exec chmod 755 {} \; # Ensure that the permissions are sane and won’t cause a 500 error. for user in `/bin/ls […]

Setting up samba with password protection

To easily share your files to linux and windows clients, samba is still the preferred choice. In this guide I will show how to setup a samba server on centos 5 machine, that can be accessed only by certain people protected by password. Install samba on the server # yum […]

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 […]

Linux Password Trick With Immutable Bit Using chattr Command

With the help of utility called chattr, you can changes the file attributes on a Linux second extended file system. The operator + causes the selected attributes to be added to the existing attributes of the files; – causes them to be removed; and = causes them to be the […]

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} […]

How to Monitor cpu abusers with script

The script found on the following site http://bashcurescancer.com The a script is called monitorCpuUsage.sh. It is meant to be called from crontab and to inform you of processes or users who maybe using excessive amounts of cpu. Here is the help screen: # ./monitorCpuUsage.sh -h Usage: monitorCpuUsage.sh -u starting uid, must be […]