I'm trying to add some lines in sudo by useing this command visudo
# User privilege specification
root ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
%sysadmin ALL=(root) /usr/sbin/shutdown,/usr/bin/topas,/usr/bin/svmon,/usr/bin/lsof,/opt/sarcheck/bin/sarcheck,/usr/bin/stopsrc,/usr
/sbin/fuser,/usr/sbin/umount,/usr/sbin/mount,/usr/bin/chown,/usr/bin/chmod,/usr/bin/find,/usr/bin/mksysb,/usr/bin/truss,/usr/sbin/tc
pdump,/usr/bin/vmstat,/usr/sbin/varyoffvg,/usr/sbin/exportvg,/usr/sbin/varyonvg,/usr/sbin/importvg
:wq!
when I try to save I'm getting the belwo
"/etc/sudoers.tmp" 31 lines, 945 characters
>>> sudoers file: syntax error, line 29 <<<
>>> sudoers file: syntax error, line 30 <<<
What now? \
Options are:
(e)dit sudoers file again
e(x)it without saving changes to sudoers file
(Q)uit and save changes to sudoers file (DANGER!)
What now?
It means what it says. The permissions of the sudo executable are incorrect for some reason, preventing it from running as root, preventing it from changing users. On my system(not AIX) sudo's permissions are:
Quick question: did you really, really read the thread so far? And why do you think the permissions on a link even remotely influence the file linked to?
Check the permissions for /opt/freeware/bin/sudo. If that's a link too, follow it again. Repeat until you encounter a regular file. That needs to have 3 certain attributes:
it has to be owned by the user root
it has to have the sticky bit set (chmod u+s as root)
it has to be executable for those allowed to use it