How to implement ACL

ACL Access Control ListLinux operating system supports ACL option.if we want to implement ACL option we have to specify in witch partition wewant to implement ACL e.g. / we want to implement ACL in this partition. 1st of all open fstab file “Be careful this is file system table file”vim /etc/fstab LABEL=/ / ext3 defaults 1 1LABEL=/usr /usr ext3 defaults 1 2LABEL=/var /var ext3 defaults 1 2LABEL=/boot /boot ext3 defaults 1 2tmpfs /dev/shm tmpfs defaults 0 0devpts /dev/pts devpts gid=5,mode=620 0 0sysfs /sys sysfs defaults…

Read More »

Useradd

In redhat linux we can add users with useradd command# useradd usernameto assign passwd we must use passwd command..# passwd usernamethen specify passwd……….information about all users will be saved in /etc/passwd file…. all passwords of the users must be saved in /etc/shadow in encrypted form… all information about groups will saved in /etc/group filewe can add group using# groupadd groupname

Read More »

Files and Directory Permissions

Written by Babar Zahoor RHCE 5.0baber@wbitt.com We have three types of permissionsread = rwrite = wexecute = x we can change permissions for three categoriesowner = ugroup = gothers = o if run ls -lwe see-rw——- 1 root root 1648 Mar 13 13:47 anaconda-ks.cfgdrwx—— 11 root root 4096 Mar 20 08:56 Desktop-rw-r–r– 1 root root 41065 Mar 13 13:46 install.log-rw-r–r– 1 root root 5891 Mar 13 13:46 install.log.syslogdrwxr-xr-x 3 root root 4096 Mar 18 23:47 ispconfigdrwxr-xr-x 37 root root 4096 Mar 20 08:25 mplayer-rw-r–r– 1…

Read More »

Squid Transparent configuration

Please follow these steps you will INSHA ALLAH configure the squid withtransparent option…..You can also you dhcpd server for ip assigning. vim /etc/sysctl.conf net.ipv4.ip_forward = 1 save & quit vim /etc/squid/squid.conf ###……please enable these options……### http_port 3128 transparent acl our_networks src 192.168.1.0/24 http_access allow our_networks cache_mem 16M access_log /var/log/squid/access.log cache_log /var/log/squid/cache.log store_log /var/log/squid/store.log cache_dir /var/spool/squid 2000 16 256 cache_mgr baber@wbitt.com visible_hostname squid.linuxlab.int save and quit #squid -z #service squid start ###……..then if u want to make it transparent kindly add rule to iptablesfirwall……..### #iptables -t…

Read More »