Solved

LINUX : Create user with required privilages to take backup of a file system

Posted on 2016-07-25
5
74 Views
Last Modified: 2016-07-26
OS : LINUX

we have Linux servers, in each server we use  # /ora-app
as our application location on OS-file system.

I would like to create a separate user for backup admin to perform backup on above file system.
please let me know

-> what are privileges are required  for the backup user
--> Advice complete command to create such user with required above backup privileges
0
Comment
Question by:mac_g
  • 2
  • 2
5 Comments
 
LVL 40

Expert Comment

by:omarfarid
ID: 41727116
you can use sudo for that. Please below link on how to config.

https://www.sudo.ws/man/1.8.17/sudoers.man.html
0
 
LVL 29

Accepted Solution

by:
Sudeep Sharma earned 500 total points
ID: 41727139
Do ls -la on /ora-app and find out the "group owner" of the directories and files.

Add new user and add him as member of the "group owner" found above.

This new user would be able to take the backup if the rights on the files and folders are correctly set.

Sudeep
0
 

Author Comment

by:mac_g
ID: 41727161
the requested output as below


[root@APPSRV11 ~]# ls -la  /u01
total 12
drwxr-xr-x   3 oracle oinstall 4096 Jul  7  2015 .
drwxr-xr-x. 26 root   root     4096 Dec  8  2015 ..
drwxr-xr-x   3 oracle oinstall 4096 Jul  7  2015 app


please advice
0
 
LVL 29

Expert Comment

by:Sudeep Sharma
ID: 41727458
From the above command it is clear that group oinstall has the permissions to access the files and folders.

If you wanted to create a new user who should be member of oinstall, them command would be

adduser username -g groupname -G oinstall

replace the username with the real name of the backup user.

-g groupname - replace the groupname with the primary group of the user.
-G oinstall - This would be the secondary group of the user.

Once you have the user created, it all depends how you wanted to take the backup.

You could use dump command or tar command or ever rsync the data over to other server or tape.

Sudeep
0
 

Author Comment

by:mac_g
ID: 41727556
i want the new user should able to take complete file system  # /u01  backup privilages

please advice , what steps are required
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
By default, Carbonite Server Backup manages your encryption key for you using Advanced Encryption Standard (AES) 128-bit encryption. If you choose to manage your private encryption key, your backups will be encrypted using AES 256-bit encryption.
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question