How can I authorize a non-root user to do a system backup with 'mksysb'?


 
Thread Tools Search this Thread
Operating Systems AIX How can I authorize a non-root user to do a system backup with 'mksysb'?
# 1  
Old 04-30-2008
How can I authorize a non-root user to do a system backup with 'mksysb'?

I use AIX 5.2 I want to allow a non-root user to do a system backup with 'mksysb' command.
I try to add 'ManageBackup' Role to that non-root user but it have an error "ksh: mksysb: 0403-006 Execute permission denied."
What should I do?
# 2  
Old 04-30-2008
Have you considered using "sudo"? With this package installed you can specify certain commands to be run by a (group of) user(s) as root. You can even limit this to the prescribed usage of certain parameters (for instance, a user might be allowed to do a "ls -l" as root, but not a "ls -a", etc.).

It looks like you could tailor this to exactly your needs.

I hope this helps.

bakunin
# 3  
Old 04-30-2008
You might also SETUID the mksysb binary. Though, I would prefer (and already use) sudo...
Setting this bit is very dangerous and so, you should be VERY careful If you consider using it...

Regards.
# 4  
Old 04-30-2008
Quote:
Originally Posted by grial
You might also SETUID the mksysb binary.
Sorry, but "mksysb" is a shellscript. See the output of "file /usr/bin/mksysb".

Anyways, i suppose we agree upon "sudo" being by far the preferable solution.

bakunin
# 5  
Old 04-30-2008
Quote:
Originally Posted by bakunin
Have you considered using "sudo"? With this package installed you can specify certain commands to be run by a (group of) user(s) as root. You can even limit this to the prescribed usage of certain parameters (for instance, a user might be allowed to do a "ls -l" as root, but not a "ls -a", etc.).

It looks like you could tailor this to exactly your needs.

I hope this helps.

bakunin

How can I know, is it "sudo" installed in the system or not ?
because I not sure was installed or not

from where install "sudo" ?
and how can I use "sudo" ?
I do not have knowledge about "sudo" .

thank you very much
# 6  
Old 04-30-2008
Quote:
Originally Posted by AIX122
How can I know, is it "sudo" installed in the system or not ?
because I not sure was installed or not
Try the whereis command or sudo -V.

Quote:
Originally Posted by AIX122
from where install "sudo" ?
and how can I use "sudo" ?
I do not have knowledge about "sudo" .

thank you very much
A useful link:

Install and configure sudo in AIX - ITtoolboxWiki

Regards
# 7  
Old 05-01-2008
Quote:
Originally Posted by bakunin
Sorry, but "mksysb" is a shellscript. See the output of "file /usr/bin/mksysb".

Anyways, i suppose we agree upon "sudo" being by far the preferable solution.

bakunin
Oooops! No way. I just assumed it was a binnary file so forget it, I'm sorry.
Of course, sudo is as you said: by far, the preferable solution.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Cloning a system via mksysb backup from one system and restore to new system

Hello All, I am trying to clone an entire AIX virtual machine to a new virtual machine including all partitions and OS.Can anyone help me on the procedure to follow? I am not really sure on how it can be done.Thanks in advance. Please use CODE tags for sample input, sample output, and for code... (4 Replies)
Discussion started by: gull05
4 Replies

2. Shell Programming and Scripting

CRON JOB not running - for tape backup from root user

I am trying a cron on root user to backup to tape using TAR command here is the cron entry 11 08 * * 6 /erdhot1cron 2>&1 >> /test3/scripts/dba/erdhot1cron.log here is script inside - edhot1cron #!/bin/bash vsysdt=`date +%d%m%y` date tar -cvf /dev/st0... (4 Replies)
Discussion started by: vijaymec50
4 Replies

3. AIX

Need help with mksysb backup on a DVD

i have an AIX server and planning to upgrade the operating system, before that i want to take a system backup which can be used in case of upgrade failure. i dont have NIM server t hold the mksysb backups. so i have the only option of taking the backup on DVD. i have the following optical drive... (5 Replies)
Discussion started by: saikiran_1984
5 Replies

4. AIX

Block root user in system console - aix 5.3

How to block the root user login in system direct console. Users should login with non-root ids themselves and then use the su command to become root. Which configuration file i need to check and disable it. (5 Replies)
Discussion started by: kmvinay
5 Replies

5. AIX

MKSYSB backup

Hi, Currently we are taking mksysb backup through smitty mksysb command and directing the backup to happen on a tape.We have inbuilt tape drives in the AIX servers. Can we take the mksysb backup through 3rd party software tool (Symantec netbackup of IBm TSM). If yes what is the procedure and... (4 Replies)
Discussion started by: dwiravi
4 Replies

6. AIX

mksysb backup

hi we are having one rootvg in that we created one lv named mksysb_backuplv and normally script will run accordingly to take the backup in the cron,here i just want to know if any rootfilesystem was correpted like /usr or /tmp ,then how could i restore the particular filesystme from the... (1 Reply)
Discussion started by: senmak
1 Replies

7. AIX

Need to take MKSYSB backup

Hi, Can any one suggest me how to take the mksysb backup in CD (VCD/DVD). I have tried like #mkcd -d /dev/cd0, but its not working. (3 Replies)
Discussion started by: oprakash
3 Replies

8. AIX

mksysb backup

hi guys, i just want to take my server's mksysb backup through dvd-rom.but am having the doubt that, while am taking the mksysb backup in image it shows 8GB. So can i confirm that it takes 2 dvds and after writing in 1st cd it will ask for 2nd cd?????? please help me out. (1 Reply)
Discussion started by: rrlog
1 Replies

9. AIX

mksysb backup

How I can to obtain a full Backup of a AIX server with the command "mksysb"?? what is the correct form? Thanks (1 Reply)
Discussion started by: granador
1 Replies

10. AIX

AIX v.5.1 - system and user data backup

Hi everyone, I have no AIX experience at all. We have an IBM Server running AIX v.5.1. The server has a DDS-4 tape drive. I need to take complete system and user data backup.Should be able to restore the system and the user data in the event of system corruption or disaster. I was told that for... (5 Replies)
Discussion started by: Sezgin
5 Replies
Login or Register to Ask a Question