From SRB



Sauth - Create an SRB password file with scrambled contents


Sauth [-ehv]


Sauth creates an individual password file, like the .MdasAuth file, but with scrambled (non-plain-text) contents to improve security. By default, this will be stored in ~/.srb/.srbAuthFile but you can change this by defining in a "SRB_AUTH_FILE" environment variable, which can be any file you wish (preferably, on a local file system).

To increase security more, you can also define environment variable "SRB_AUTH_KEY" to be any value you wish. If you set "SRB_AUTH_KEY" when you run Sauth, it must also be defined later as the same value for subsequent authentication to succeed. Do not set this to your password, simply use some arbitrary string. It is used internally as part of the scrambling algorithm.

Sauth will either prompt for your existing SRB password or read it from your .MdasAuth file (or even an srbAuthFile), and then will write it in an obfuscated form into the srbAuthFile. If the srbAuthFile file already exists, Sauth will prompt for permission to overwrite it (respond with yes or y).

After writing the .srbAuthFile file, Sauth will also prompt for permission to remove your .MdasAuth file since it is no longer needed.

For added security, you can remove the srbAuthFile and later recreate it by re-running Sauth.

If you run Sauth and later run Spasswd to create a new SRB password, Spasswd will update your .srbAuthFile instead of the .MdasAuth file.


echo the password as you type it in; normally echo is disabled.
display usage information.
verbose mode.


Sinit, Spasswd, Senv