New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Need to access /Users without root account


Post Reply New Thread Subscribe

 
Thread Tools
Krazypoloc

 
Member Since: Mar 09, 2012
Posts: 5
Krazypoloc is on a distinguished road

Krazypoloc is offline
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.
QUOTE Thanks
chas_m

 
chas_m's Avatar
 
Member Since: Jan 22, 2010
Location: Victoria, BC
Posts: 17,545
chas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond repute
Mac Specs: Mid-2012 MBP (16GB, 1TB HD), BenQ second monitor, iPhone 5s 32GB, iPad Air 2 64GB

chas_m is offline
without using sudo or root? No.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,352
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
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
QUOTE Thanks
Krazypoloc

 
Member Since: Mar 09, 2012
Posts: 5
Krazypoloc is on a distinguished road

Krazypoloc is offline
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?
QUOTE Thanks
Krazypoloc

 
Member Since: Mar 09, 2012
Posts: 5
Krazypoloc is on a distinguished road

Krazypoloc is offline
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....
QUOTE Thanks
Krazypoloc

 
Member Since: Mar 09, 2012
Posts: 5
Krazypoloc is on a distinguished road

Krazypoloc is offline
Found the solution here.

Running Rsync and Sudo over SSH | TechniTip.Net

Clip from the article..

Quote:
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.
QUOTE Thanks
chas_m

 
chas_m's Avatar
 
Member Since: Jan 22, 2010
Location: Victoria, BC
Posts: 17,545
chas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond repute
Mac Specs: Mid-2012 MBP (16GB, 1TB HD), BenQ second monitor, iPhone 5s 32GB, iPad Air 2 64GB

chas_m is offline
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 ...
QUOTE Thanks

Post Reply New Thread Subscribe


« Help with multiple .cdr files please! | Keyboard shortcut for navigating dialogue box in Lion »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Are these processes normal...Any indication of spyware - malware??? bushidohc13 OS X - Operating System 11 06-25-2011 03:24 AM
MacBook Pro runs really hot when using only a few applications gm0bbq OS X - Operating System 1 03-29-2011 09:30 PM
Root Account and History Armageddon OS X - Operating System 1 01-07-2011 10:27 PM
moving "profile"/content from admin to user account marttram OS X - Operating System 3 05-22-2010 05:46 AM
Missing user account after joining domain fruvos OS X - Operating System 3 06-18-2008 08:09 PM

All times are GMT -4. The time now is 05:41 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?