Results 1 to 7 of 7
  1. #1
    Need to access /Users without root account

    Member Since
    Mar 09, 2012
    Posts
    5
    Need to access /Users without root account
    Have a question about a backup job I am trying to run as user "admin" to backup everything in /Users...is there a way to make All of /Users readable to "admin" without using any sudo or root access?

    This is for a Backuppc rsync job that is using PKA to connect to the client OSX machine.

  2. #2
    Need to access /Users without root account
    chas_m's Avatar
    Member Since
    Jan 22, 2010
    Location
    Victoria, BC
    Posts
    18,941
    Specs:
    Mid-2012 MBP (16GB, 1TB HD), Monoprice 24-inch second monitor, iPhone 5s 32GB, iPad Air 2 64GB
    without using sudo or root? No.

  3. #3
    Need to access /Users without root account
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    You can easily make /Users readable globally by changing the permissions on the folders but I'd highly discourage you from doing that.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  4. #4
    Need to access /Users without root account

    Member Since
    Mar 09, 2012
    Posts
    5
    Quote Originally Posted by chas_m View Post
    without using sudo or root? No.
    So there is no way for any other account than root to access /Users recursively? I have root and sudo access and can change the perms on this folder, but am not sure what to change them to.

    If still not, would running the backuppc job as sudo have the effect I want?

  5. #5
    Need to access /Users without root account

    Member Since
    Mar 09, 2012
    Posts
    5
    Quote Originally Posted by vansmith View Post
    You can easily make /Users readable globally by changing the permissions on the folders but I'd highly discourage you from doing that.
    Yeah I don't want to make it globally readable....

  6. #6
    Need to access /Users without root account

    Member Since
    Mar 09, 2012
    Posts
    5
    Found the solution here.

    Running Rsync and Sudo over SSH | TechniTip.Net

    Clip from the article..

    I often use rsync for doing backups. But if you want to do a remote backup and want to backup files and directories which are owned by different users or the root user running using rsync is difficult if you have disabled root login in your sshd_config using the statement PermitRootLogin no. For sure this is the recommended setting if your server to backup has a public IP address.
    A nice and easy solution which works best for me is to use sudo. This will allow to run rsync via ssh and sudo. To get it running you have to add an entry into your sudoers config file:
    /etc/sudoers
    backup_user ALL=(root)NOPASSWD:/usr/bin/rsync
    This will allow the user backup_user to run the command rsync as root.
    Next step is to add an rsync-path parameter to the remote rsync call:
    rsync --rsync-path="sudo rsync" backup_user@myhosttobackup.net:/root /backup_directory
    Finally rsync will automatically do an sudo to root on the remote server and all to backup all files owned by root as well.

  7. #7
    Need to access /Users without root account
    chas_m's Avatar
    Member Since
    Jan 22, 2010
    Location
    Victoria, BC
    Posts
    18,941
    Specs:
    Mid-2012 MBP (16GB, 1TB HD), Monoprice 24-inch second monitor, iPhone 5s 32GB, iPad Air 2 64GB
    Quote Originally Posted by Krazypoloc View Post
    is there a way to make All of /Users readable to "admin" without using any sudo or root access?
    You specifically asked us if there was a way to do this without using sudo. You now tell us that the solution you found uses sudo.

    Okaaay ...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Root Account Not Zero (0)
    By tsalcicciajr in forum OS X - Operating System
    Replies: 2
    Last Post: 11-02-2012, 07:44 PM
  2. How can I transfer the root account on my computer to a regular account?
    By Chuck67322 in forum OS X - Operating System
    Replies: 1
    Last Post: 07-31-2012, 10:55 PM
  3. Root Account and History
    By Armageddon in forum OS X - Operating System
    Replies: 1
    Last Post: 01-07-2011, 09:27 PM
  4. Trying to make root account on 10.5
    By tymyshoe91 in forum OS X - Operating System
    Replies: 6
    Last Post: 12-14-2009, 09:28 PM
  5. Accessing the Root account
    By coalitionguy in forum OS X - Operating System
    Replies: 4
    Last Post: 02-28-2005, 06:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •