[root@school-server ~]# cat /etc/*releaseALT Linux 6.0.0 School Server (none)
[root@school-server ~]# cat /etc/sudoers# sudoers file.## This file MUST be edited with the 'visudo' command as root.## See the sudoers man page for the details on how to write a sudoers file.## Host alias specification# User alias specificationUser_Alias WHEEL_USERS = %wheelUser_Alias XGRP_USERS = %xgrp# Cmnd alias specification# Defaults specification# If env_reset is disabled, sudo will NOT reset the environment# to only contain the fixed list of variables.# See sudoers(5) for details.#Defaults:WHEEL_USERS !env_reset# Preserve DISPLAY and XAUTHORITY environment variables# for "xgrp" group members.Defaults:XGRP_USERS env_keep += "DISPLAY XAUTHORITY"# User privilege specification#root ALL=(ALL) ALLteacher ALL=(ALL) NOPASSWD: ALL[root@school-server ~]#
Last login: Wed Oct 10 09:30:13 2012 from 192.168.56.101[teacher@school-server ~]$ service squid restartService squid is not running.rm: невозможно удалить </var/lock/subsys/squid>: Отказано в доступе [PASSED]/etc/init.d/squid: line 61: ulimit: open files: cannot modify limit: Операция не позволенаStarting squid service: touch: невозможно выполнить touch для </var/lock/subsys/squid>: Отказано в доступе [ DONE ][teacher@school-server ~]$
sudo service squid restart