Blogs
Product Talk
Dave Cormier Director of Product Marketing
Recently in Logs Category
September 15, 2008
Add a Read-Only linux user
Depending on how you have implemented StrongMail, it may make sense to create a limited access user account. This will allow you to setup processes that can harvest information from the StrongMail application log files.
Here's how to do it:
1.) Create the following group with the groupadd command.
$ groupadd -g 5000 smuser
2.) Use the useradd command to create the following user account in the home directory.
$ useradd -u 5000 -g 5000 -md /home/smuser -c "Strongmail Linux User " -s /bin/bash smuser
$ cat /etc/passwd
$ cat /etc/group
Review the changes you have made to these files, there should be lines at the bottom beginning with the string smuser.
3.) Assign initial passwords to both accounts. For user smuser assign the password of smuser (type smuser in at this point - lowercase no quotes)
$ passwd smuser
Changing password for smuser
New Password:
BAD PASSWORD: it is based upon a dictionary word
Retype New Password:
$
4.) Logout of the StrongMail system.
$ logout
5.) Test the account you have just created by logging in as user smuser with a password of smuser. IMPORTANT: Once you confirm that the user is functioning properly, change the password again to insure that it is secure.
6.) Repeat steps 2, 3, 4, 5 and 6 for each additional user account to be created. Note that linux expects the home directory name (/home/smuser1) to be identical with the username (smuser1), the last argument to the
useradd command.
7.) To allow read only access to the strongmail/log directory for read only access, the world permissions of Read/eXecute must be granted to both directories.
Existing Permissions for the directories strongmail and strongmail/log are:
Perms Owner Group Name
drwxrwx--- strongmail strongmail strongmail
drwxrwx--- strongmail strongmail log
and should be changed to the following:
Perms Owner Group Name
drwxrwxr-x strongmail strongmail strongmail
drwxrwxr-x strongmail strongmail log
$ cd /data1Special thanks to Norm DeValliere for helping out with this post.
$ chmod 775 strongmail
$ cd /data1/strongmail
$ chmod 775 log
