Code Authors: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Code Authors Forum Index -> Operating Systems -> Linux Mint
Author Message
spasticdonkey
Newbie
Newbie



Joined: May 12, 2009
Posts: 74
Location: TX

PostPosted: Sat Mar 10, 2012 6:04 pm Share on Linked InShare on FacebookShare on Twitter Reply with quote

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.
 
View user's profile Send private message Visit poster's website
Guardian
Site Admin
Site Admin



Joined: Jan 06, 2006
Posts: 4465
Location: Vsetin, Czech Republic

PostPosted: Tue Mar 13, 2012 10:14 pm Share on Linked InShare on FacebookShare on Twitter Reply with quote

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 
View user's profile Send private message Send e-mail Visit poster's website
spasticdonkey
Newbie
Newbie



Joined: May 12, 2009
Posts: 74
Location: TX

PostPosted: Tue Mar 13, 2012 11:51 pm Share on Linked InShare on FacebookShare on Twitter Reply with quote

ah don't worry about missing the thread for a bit, and thanks for taking the time to explain in detail.
 
View user's profile Send private message Visit poster's website
Guardian
Site Admin
Site Admin



Joined: Jan 06, 2006
Posts: 4465
Location: Vsetin, Czech Republic

PostPosted: Mon Nov 26, 2012 1:19 am Share on Linked InShare on FacebookShare on Twitter Reply with quote

Just found this as well for reference;
Not all flavors of *nix have a GUI for User and Group permissions but the command line commands work from this
http://joomla-and-more.com/2009/10/28/how-to-set-rights-for-varwww-when-using-apache-under-ubuntu/

_________________
TPD 
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Code Authors Forum Index -> Operating Systems -> Linux Mint

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

 
Forums ©
linear-bunch
linear-bunch