Portal Home > Knowledgebase > Articles Database > how to create a regluar user with root privilege


how to create a regluar user with root privilege




Posted by heropage, 04-27-2011, 04:46 PM
I have server A and B. I want to use rsync to make a backup from A to B. i follow this http://www.howtoforge.com/mirroring_with_rsync I create someuser on server A. And I want someuser to be able to access all the file on server A, so that I can copy all the files I need to server B. How to create someuser with root privilege?

Posted by asciiDigital, 04-27-2011, 04:49 PM
You can have your rsync commands run using su -c

Posted by viGeek, 04-27-2011, 05:01 PM
Yes, ideally you would want to sync as a user, unless root is absolutely required. You can create two user's on the box, best bet would be to sync (NIS/Manually) their UID/GID as well to keep it fluid across both servers.

Posted by Manjusha4serveradmin, 04-27-2011, 05:02 PM
create sudo user and work rsync straight forward

Posted by akasharya, 04-28-2011, 12:35 AM
why do not you use root user? or you can add a user to your server and change its gid or uid to 0 in /etc/passwd file. it will work like root but with different password

Posted by heropage, 04-28-2011, 09:22 AM
how to use su -c This is the command I am using now on Server B

Posted by Syslint, 04-28-2011, 09:40 AM
well setup an ssh key authentication between these servers and run this commands as a root cron .

Posted by heropage, 04-28-2011, 11:06 AM
I use visudo and add this line to make erd321 as sudoer But it still say Permission denied Last edited by heropage; 04-28-2011 at 11:10 AM.

Posted by heropage, 04-28-2011, 11:23 AM
now when I logon to server A as user erd321. When I run I can access all the files. but how do I run this command on server B with sudo command

Posted by heropage, 04-28-2011, 11:44 AM
I use But I get



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
seeksadmin (Views: 689)
Script Updates (Views: 683)


Language: