Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The above script is located at root's home folder(~), only root have permissions to rwx this file.

Setting up groups, users, and sudo on servers

DB

[root@CentOSDB17882 ~]# ./setupAccess.sh dbadmin henry

Group webadmin has been created, creating user: henry ...
User 'henry' added to group 'webadmin' with default password 'newpass'

WEB

[root@CentOSWeb17881 ~]# ./setupAccess.sh webadmin henry

...

User 'henry' added to group 'webadmin' with default password 'newpass'

GEO

[root@CentOSGeo17883 ~]# ./setAccess.sh geoadmin henry
Group geoadmin has been created, creating user: henry ...
User 'henry' added to group 'geoadmin' with default password 'newpass'

...

No Format
## reboot, add any additional commands here
Cmnd_Alias USER_DEFINED = /sbin/reboot

## sudo commands allowed for geo admins
%geoadmin       ALL = SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, USER_DEFINED

Same for other servers.

Groups for developers are also setup in the same manner:

For DB:

[root@CentOSDB17882 ~]# ./setupAccess.sh dbdev paul