LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Permissions: want to make a file accessible to all users (https://www.linuxquestions.org/questions/linux-newbie-8/permissions-want-to-make-a-file-accessible-to-all-users-626084/)

chrille112 03-06-2008 03:14 AM

Permissions: want to make a file accessible to all users
 
I have a file /home/kalle/script that I want to make accessible to user "peter" (and all other users)
The /home/kalle/script has group kalle and user kalle. I have chmod:ed it a+rwx, but user peter gets:

cat /home/kalle/script: Permission denied

What have I missed?

jschiwal 03-06-2008 04:50 AM

The permissions on your home directory don't allow other users to enter it. This is what you want. You need to move or copy the file to a publicly readable directory. The /tmp directory can be used for temporary file exchange like this. You could create one yourself (as root). If you run samba, and users sharing directories is allowed you could share it that way. You system may setup a directory "public_html" in home for this.

chrille112 03-06-2008 05:43 AM

Thanks, that solved my problem :)


All times are GMT -5. The time now is 04:29 AM.