How to create full right permission on Samba share

Friday, October 17th, 2008

Samba is an Open Source/Free Software suite that has, since 1992, provided file and print services to all manner of SMB/CIFS clients, including the numerous versions of Microsoft Windows operating systems. Samba is freely available under the GNU General Public License.
Samba comes with different types of permissions for share and for some reason you [...]

SSH Remote Access Authentication Tips

Friday, October 10th, 2008

My friend was try to setup Linux SSH public key authentication without password and he’s keep getting password prompt. I will not going to go through how to setup SSH public key authentication here and I just would like to share few troubleshoot tips in order to fix the similar problem here:
1. Checking /var/log/messages file
Basically [...]

SSH problem

Thursday, August 21st, 2008

I can’t login to the server using SSH and the TELNET service is NOT enable by default. Thanks god, I have DELL DRAC enable, I managed to login using console.
I’m getting an error messages in /var/log/messages and SSH connection refused error on one of my SuSE Linux box as below:
Aug 2 16:20:05 planetmy sshd[22531]: fatal: [...]

How To Configure Home Directories Permission on Linux

Monday, August 18th, 2008

In order to change all home directory permission, I will run the following script:

for DIR in \
`awk -F: ‘($3 >= 500) { print $6 }’ /etc/passwd`; do
chmod g-w $DIR
chmod o-rwx $DIR
done

Basically the script as above will remove WRITE permission for group, remove READ, WRITE, EXECUTE for [...]

User Permission Overwrite Group Permissin on Linux

Saturday, August 16th, 2008

This is a tricky question when my customer ask me why he can’t change certain on his home folder.
Said for an example:
I have a username: john with primary group finance running on one of the Linux server.
$id john
uid=1008(john) gid=1002(finance) groups=1002(finance)
$pwd
/home/john
$ls -l aug2008.txt
-r-rw-r– 1 john finance [...]