groupadd localadmin useradd -m -r -s /bin/bash -G localadmin penguen passwd penguen vi /etc/sudoers dosyası açılır ya da visudo komutu çalıştırılarak dosya üzerinde arzu edilen yetki düzenlemeleri yapılmak üzere istenilen grup ya da kullanıcı eklenir. Nitekim yukarıdaki komut istemleri ile localadmin isminde bir grup ve yeni bir kullanıcı oluşturduk.Aşağıdaki satırlar, localadmin grubuna ait kullanıcıların sistem [...]
Share on FacebookCategory Archives: Unix
Shell session gecmisinin her logout esnasinda temizlenmesi
Komutlar: echo history -c >> .bash_logout && echo $? ; tail -n 1 .bash_logout echo history -c >> .bash_logout && cat /dev/null > .bash_history |echo $? ; tail -n 1 .bash_logout Çıktı: 0 history -c Artık, bash session her kapatıldığı esnada, açık session içerisinde çalıştırılan komut istemleri de silinecektir. Referans: http://ipucu.enderunix.org/index.php?tip_id=4&lang=tr Share on Facebook
Share on FacebookHow to do display all pid number of a parent process id in unix.
ps ile pid (child)+ ppid number(parent) ve prosess’lere ait diğer ekstra bilgileri almak gayet basit. ps -o user,pcpu,pmem,pid,ppid,command axx –forest | grep ‘apache’ | sort apache 0.0 17.0 11944 32311 \_ /usr/sbin/httpd apache 0.6 18.1 11946 32311 \_ /usr/sbin/httpd apache 0.6 18.1 11948 32311 \_ /usr/sbin/httpd apache 0.6 18.1 11953 32311 \_ /usr/sbin/httpd apache 0.7 [...]
Share on Facebook
