Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Background:
I'm trying to set up a situation where my FTP account is in a group where my phpbb forums were created. This will allow me to upload changes as I customize my forums (ie: .css files). However, right now, my problem is that I'm running into invalid permissions and the only way to move the files is to upload the file to a directory my FTP account has access too and then sudo cp the file over. Upon closer inspection of my files, it appears the groups the files have been made under are not the correct group.
Problem:
I am trying to use chgrp on a specific file to change the group owner to the group my FTP account is a member of but it does not seem to be working. Here is a snippet of what I'm doing:
Code:
zzz@aaaa:/var/www/html/yyy/forums/styles/GlossyBlack/theme]$ sudo chgrp apache colours.css -v
group of `colours.css' retained as apache
zzz@aaaa:/var/www/html/yyy/forums/styles/GlossyBlack/theme]$ ls
total 164
drwxr-xr-x 3 5645316 apache 4096 Mar 27 15:11 .
drwxr-xr-x 6 5645316 apache 4096 Nov 18 2012 ..
-rw-r--r-- 1 root apache 23480 Mar 27 19:05 colours.css
I'm not sure why it still says root so I suspect I am doing something incorrect. When looking around, at first it seemed chgrp could change group owner on files but as I dug more, it seemed it can also change groups themselves. So I'm a little confused and require some clarity of experts.
I hope changing the group owner of this file will give access to my FTP account so I can apply this change to all needed locations.
That was it - I now have set all of my files to the group. When I was originally executing chown, I was not setting the group - only the user. This explains what was going on.
and if that doesn't work, check the security label on the file. Copying the file should cause it to inherit the correct label, doing an "mv" on it will not.
also BE AWARE!!!
CentOS 6.3 is UNSUPPORTED!
CentOS 6.4 is UNSUPPORTED!
CentOS 6.5 is UNSUPPORTED!
Cent ONLY supports the CURRENT minor version
upgrade to 6.6 ASAP!!!
you are missing 2 years of SECURITY updates and fixes
6.3 is VULNERABLE to EVERYTHING that has been fixed in the last TWO YEARS!!!!
also BE AWARE!!!
CentOS 6.3 is UNSUPPORTED!
CentOS 6.4 is UNSUPPORTED!
CentOS 6.5 is UNSUPPORTED!
Cent ONLY supports the CURRENT minor version
upgrade to 6.6 ASAP!!!
you are missing 2 years of SECURITY updates and fixes
6.3 is VULNERABLE to EVERYTHING that has been fixed in the last TWO YEARS!!!!
Can you provide me some links on how I can upgrade? I'm currently running a VPS so have to do it myself.
Anytime you modify the kernel,you're going to have to reboot. You can do the update, check the logs to make sure you've got a good load and then reboot on your own schedule (we do that in the course of a single night, usually). Changes to the kernel do not take effect until you reboot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.