Solved

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

Posted on 2016-07-25
5
118 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 30

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 30

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

Application Discovery Service in AWS

In the era of the cloud, customers migrating away from their existing on-premise infrastructure. This requires lots of planning, strategies, and effort to identify their existing resources and determine how best to migrate.  Datacenter migrations happen in four phases -

Question has a verified solution.

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

Microservice architecture adoption brings many advantages, but can add intricacy. Selecting the right orchestration tool is most important for business specific needs.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
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…

623 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