Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
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.
I'm running Ubuntu hardy on two machines. On one of them, I can't source a file from another user's directory, even though the file is set up as 777. On my other machine, I can source the file with the standard 644 permissions. The two installations should be identical, but I must have screwed up something on the first one. Any suggestions would be appreciated!
I don't know, why you'd like to use someones files from within his/her home directory. I always resort to making all homes 700 - really private.
I consider it good style to create a dedicated common place for files to share like /pub owned by a common users group with suitable permissions, set-group-id and even sticky-bit set.
If you absolutely need/insist to carry on with your home directory permissions: You've made sure, that the 777 is not the fault itself, haven't you? Not only that you might not need execute-permission *), it may even make some checks for strict/suitable file permissions fail ...
Just my 2 cents. :-)
*) ... and you shouldn't make more files executable that the absolute minimum (typically governed by your Ubuntu's default installation, if there is not a current, urging need to do so. Use dpkg-statoverwrite to make permanent, reproduce-able changes to local dir/file permission settings, assuming you have this call on your systems (works on Debian, the base of Ubuntu).
If this doesn't help too much, I' ll require to know more about what file you're trying to source for what purpose to get a better clue. For now I wish you good luck.
Thanks! It's my home machine so I'm not worried about users using other users' stuff. It turns out that indeed all home directories *were* 700, which was where all my problems came from. Don't know how that happened, but I reset them to 644 and I'm happy!
Great! Glad I could help. :-)
BTW, consider tagging a resolved issue as "solved" and to use the "Thanks"-function to honor LQs members for good advise given. It simply feels sooo good, that I makes me looking into more zero-reply threads ...
Last edited by hasienda; 08-22-2009 at 05:34 PM.
Reason: added hint about tagging resolved threads
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.