Opened 13 years ago
Closed 12 years ago
#82 closed defect (worksforme)
Credentials in rasdaman installed from an RPM
Reported by: | Owned by: | Dimitar Misev | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | RPM | Version: | 8.2 |
Keywords: | Cc: | Peter Baumann, mackoel@… | |
Complexity: | Medium |
Description
Before opening up our machine to the outside world I was going to set some improved security like changing the default rasadmin passwords etc. I used the raspasswd utility and this changed the password temporarily but when restarting the rasmgr service:
- service rasmgr stop/restart/start commands don't work because the password is encoded in the /etc/init.d/rasmgr script. Therefore had to kill rasmgr process with kill command. How do we update the /etc/init.d/rasmgr script with a new password?
- When stopping rasmgr gives an error about not being able to write the authorization file /etcrasmgr.auth so it doesn't exist when restarting and the passwords are back to the default. Running raspasswd as root doesn't help (it doesn't seem to try to create the /etc/rasmgr.auth file at the time of running. I could try making /etc dir writable by non-root processes but this doesn't seem the right way to go. How should the rasadmin password be changed?
Anything else we should be aware of when updating the passwords? I notice the rasadmin password is in the default petascope settings file: does petascope really need this if we are just reading data?
Change History (4)
comment:1 by , 13 years ago
Cc: | added |
---|
comment:2 by , 13 years ago
comment:3 by , 13 years ago
I found out about rasmgr.auth. It goes to the wrong place - the conf directory that rasdaman should not have write access to, as it doesn't configure itself. rasmgr.auth should go to rasdaman system user's home. So apart from CONFDIR in configure.ac another constant can be defined. But I think it's better to change the behaviour so that rasmgr will write to $HOME taken from the environment.
comment:4 by , 12 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
If there is no such file it is to be created.
root# service rasmgr start