Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-07-2014, 01:08 PM
|
#1
|
Member
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554
Rep:
|
Folder permission from ls -l returns d---------
I am trying to do an rsync backup of my server. There are several users who store their files on the server.
My user is a sudoer (can use sudo). So I run rsync with sudo so that I can backup everything from all the users.
However, I have noticed that rsync gives some errors on directories that have a permission of d---------
Why do those folders have that permission? Also, why can't my sudo rsync command get those files and folders? If I open my file manager with sudo, it is able to browse into those folders and see all the files.
-Thanks
|
|
|
07-07-2014, 01:55 PM
|
#2
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep:
|
Quote:
Originally Posted by xmrkite
Why do those folders have that permission?
|
Post the exact rsync command please.
Is the destination a mount, or a network resource (cifs, sshfs, etc)?
|
|
|
07-07-2014, 01:59 PM
|
#3
|
Member
Registered: Sep 2010
Posts: 275
Rep:
|
that is an odd permission on a folder. the permission d---- means it is a directory with no permission. in that case i believe the only one with access is root. i believe sudo can also but i am not sure that a program run with sudo would be able to. if you are getting an error then i would say that is definitely a permission issue, that it is not able to access that folder.
to remedy this, you need to set permissions so that you have access to that folder. here is a breakdown of what you need to do...
ChMOD
reading that will help you understand what you are doing. for instance, as root of via sudo you would want to run something like sudo chmod -R 755 /yourfoldername so that will give root full access and everyone else (users and whoever) would get read/execute access to the directory.
|
|
|
07-07-2014, 02:04 PM
|
#4
|
Member
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554
Original Poster
Rep:
|
Ok, my script is:
rsync -azvr --no-p --no-g --chmod=ugo=rwX --delete --max-size=2048m --exclude='.Trash-0' --exclude='backintime' --exclude='guest' --exclude='lost+found' --exclude='Public' /media/md2r5/ -e ssh me@myipaddress:/home/myuserfolder/Backup
I recently added the "--no-p --no-g --chmod=ugo=rwX" to see if that'd fix it but it did not.
I use cwrsync to rsync over ssh from windows to the ubuntu server, and then this script above to backup one ubuntu server to my offsite one.
|
|
|
All times are GMT -5. The time now is 05:24 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|