08-29-2014 08:47 AM
Hello Everybody!!
I would like to know if could be posible to run backups as non root on Linux.
The enviroment is as follow.
The master server is installed on Redhat and the netbackup verion is 7.5.0.5
We have a NAS storage mounted as NFS on the master server for backing up NAS information. At operating system root user can not read files but other users can do it.
so when I run the backup I got the error
10:09:26.265 [5933] <4> bpbrm main: from client S01NETAGNPN01: TRV - Cannot process path [/RMAN_BKP_NAS/PORTACTP/PORTACTP_full_nrph3ru8_1_1.bck]: [Permission denied]. Skipping
10:09:26.276 [5933] <4> bpbrm main: from client S01NETAGNPN01: TRV - Cannot process path [/RMAN_BKP_NAS/PORTACTP/PORTACTP_full_nsph3ru9_1_1.bck]: [Permission denied]. Skipping
10:09:26.286 [5933] <4> bpbrm main: from client S01NETAGNPN01: TRV - Cannot process path [/RMAN_BKP_NAS/PORTACTP/PORTACTP_full_ntph3rus_1_1.bck]: [Permission denied]. Skipping
10:09:26.296 [5933] <4> bpbrm main: from client S01NETAGNPN01: TRV - Cannot process path [/RMAN_BKP_NAS/PORTACTP/PORTACTP_full_nuph3rut_1_1.bck]: [Permission denied]. Skipping
Is it posible to run backup as non root user on the master server?
Best regards,
Solved! Go to Solution.
08-29-2014 09:23 AM
in linux its not poosible to run as other users ..
only root is alllowed to run...
but you have an alternat way...
have a look at Marianne comment below link
https://www-secure.symantec.com/connect/forums/account-used-netbackup-perform-backups#comment-9478221
###copy from Marianne comment ####
"You may want to create a crontab for this account to backup the files with bpbackup command.
Add a User type schedule to existing policy with open window during which user backup will be allowed.
bpbackup command will look similar to this:
/usr/openv/netbackup/bin/bpbackup -p <policy-name> -s <user-schedule-name> -L /path/logfile-name /filesystem-path"
08-29-2014 09:23 AM
in linux its not poosible to run as other users ..
only root is alllowed to run...
but you have an alternat way...
have a look at Marianne comment below link
https://www-secure.symantec.com/connect/forums/account-used-netbackup-perform-backups#comment-9478221
###copy from Marianne comment ####
"You may want to create a crontab for this account to backup the files with bpbackup command.
Add a User type schedule to existing policy with open window during which user backup will be allowed.
bpbackup command will look similar to this:
/usr/openv/netbackup/bin/bpbackup -p <policy-name> -s <user-schedule-name> -L /path/logfile-name /filesystem-path"
08-29-2014 09:27 AM
People often do this on Windows when they need to set the client service as a specific account .. I am not a great unix person but i would imagine it would cause real issues due to the structure of unix, the authentication engien etc.
I would have thought that NBU would need to have been installed as that user initially to have this work .. sure Martin or Marianne will come along and put me right!!
Do you have a Windows client that could have the location mapped to it? That would make life a lot simpler.
08-29-2014 11:00 AM
Thanks for your quickly reply.
I have read before the marianes post but when i try to run the backup the result is the same.
Do I need to have special schedule type, i me user backup.
Best regards
08-29-2014 11:39 AM
yes.. that is want Marianne said in her post
"Add a User type schedule to existing policy with open window during which user backup will be allowed."
08-29-2014 12:15 PM
Hello, I have done it but when I try to run the backup I got this error.
user id was not superuser
EXIT STATUS 140: user id was not superuser
Best regards
08-31-2014 11:36 PM
Root on NFS is normally mapped to the nobody account. You can however specify that root can map to the root account by using the no_root_squash option.
You need to the NFS vendors documentation on how to set the no_root_squash option
For reference:
http://linux.die.net/man/5/exports
http://nfs.sourceforge.net/nfs-howto/ar01s06.html
09-05-2014 07:29 AM
Hello, all
I have done the backup using a User Backup schedule. But it only runs as a full backup, are there any way tu run User Backup as incremental backup?
Best regards
09-07-2014 11:41 AM
Why on earth are you asking questions if you then mark your post as solution??????
If a User backup was successful, then you need to mark Nagalla's post as solution.
The post he referred you to was for a User backup.
A User backup will work if the owner of the files run the bpbackup command for User backup...
09-23-2014 08:46 AM
Sorry,
Mariane You are rigth but I donk know how to mark Magalla's answer as a solution.
Nagalla, Can you help me to mark the answer as a solution.
Best regards