Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 564  / 3 Years ago, sun, september 5, 2021, 2:56:06

First I'm a NEWBIE - I'm using a Bitnami stack to deploy a Rails app.



Bitnami has the rails applications in /opt/bitnami/projects.



I created a group called deployers. My login is bitnami. So, I added bitnami to deployers (I'm the only developer right now).



So,




  • whoami = bitnami

  • groups bitnami = bitnami : bitnami adm dialout cdrom floppy audio dip video plugdev admin deployers



Then I ran these commands:



sudo chown -R root:deployers projects
sudo chmod -R 0766 projects


I thought those commands would give bitnami in group deployers the read/write access I need.



But, now I can't even cd projects. I get bash: cd: projects: Permission denied.



The permissions on the projects directory look like this:



projects Directory drwxrw-rw- root deployers


How do I fix it?


More From » permissions

 Answers
5

You can't cd projects because you must have execute permission on a directoryto do so. Run this to set the permissions:



sudo find projects -type f -exec chmod -R 664 {} ;
sudo find projects -type d -exec chmod -R 775 {} ;


The first applies read and write permissions to files and the second applies read, write and execute permission to directories.


[#32400] Sunday, September 5, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
restlerfin

Total Points: 347
Total Questions: 112
Total Answers: 108

Location: Ukraine
Member since Wed, Dec 16, 2020
3 Years ago
;