PDA

View Full Version : sudoers error



anilsarwal
20th December 2006, 05:29 AM
Using sudo I get the following error

>>> sudoers file: syntax error, line 92 <<<
sudo: parse error in /etc/sudoers near line 92

Can someone help to resolve it please?

Thanks

stanjam
20th December 2006, 05:33 AM
Not without seeing the file. In the future only modify the sudoers file with the visudo -s command which checks syntax before saving.

If you post your sudoers file, espescially the section around the error, someone here may be able to help you.

anilsarwal
20th December 2006, 05:42 AM
Thanks

The visudo opens this file

## Sudoers allows particular users to run various commands as
## the root user, without needing the root password.
##
## Examples are provided at the bottom of the file for collections
## of related commands, which can then be delegated out to particular
## users or groups.
##
## This file must be edited with the 'visudo' command.

## Host Aliases
## Groups of machines. You may prefer to use hostnames (perhap using
## wildcards for entire domains) or IP addresses instead.
# Host_Alias FILESERVERS = fs1, fs2
# Host_Alias MAILSERVERS = smtp, smtp2

## User Aliases
## These aren't often necessary, as you can use regular groups
## (ie, from files, LDAP, NIS, etc) in this file - just use %groupname
## rather than USERALIAS
# User_Alias ADMINS = jsmith, mikem


## Command Aliases

Can you help please?

glennzo
20th December 2006, 11:41 AM
Is that the whole file? There's no line 92. My line 92 reads like this: ## Allows members of the users group to shutdown this system
That's the next to the last line in the file and the file is exactly as it was installed