| Author |
Message |
spasticdonkey
Newbie


Joined: May 12, 2009
Posts: 74
Location: TX
|
Posted:
Sat Mar 10, 2012 6:04 pm |
 
|
Not sure I quite got the folder permissions squared away for my LAMP setup yet. I tried some CHOWN command line stuff but not sure I'm going it right. For some reason my main menu does not have an administration tab so I can't find alternatives for addressing it that way.
Problems I am having are: copying files into my test site and having to fix permissions each time i do so. |
| |
|
|
 |
Guardian
Site Admin


Joined: Jan 06, 2006
Posts: 4465
Location: Vsetin, Czech Republic
|
Posted:
Tue Mar 13, 2012 10:14 pm |
 
|
I need to do something about these nested forums, it isn't very clear when new posts are made so sorry for the delayed reply.
To give you access to the www directory you can take ownership of it with the following snippet if you open a terminal window (ALT + F2). USERNAME is your PC username/login name
Code:sudo chown USERNAME /var/www
|
If you already have directories inside www you'll need to recursively change ownership
Code:sudo chown -R USERNAME /var/www
|
Howerver, the correct way (assuming you don't have anything inside the www directory) is to add your main user (USERNAME) to the group that owns the directory, which as fate would have it is the 'www' group.
Code:sudo groupadd www
sudo useradd -g USERNAME www
|
Now we;
recursively make sure the 'www' group has ownership
recursively CHMOD
Code:sudo chown -R :www /var/www
sudo chmod -R g+rwX /var/www
sudo chmod g+s /var/www
|
|
_________________ TPD |
|
|
 |
spasticdonkey
Newbie


Joined: May 12, 2009
Posts: 74
Location: TX
|
Posted:
Tue Mar 13, 2012 11:51 pm |
 
|
ah don't worry about missing the thread for a bit, and thanks for taking the time to explain in detail. |
| |
|
|
 |
Guardian
Site Admin


Joined: Jan 06, 2006
Posts: 4465
Location: Vsetin, Czech Republic
|
Posted:
Mon Nov 26, 2012 1:19 am |
 
|
|
|
 |
|
|