Skip to main content

All Questions

Tagged with
4 votes
1 answer
651 views

What does chmod 7760 <directory> do in CentOS 7 bash?

I typed the command chmod 7760 by accident. I meant to type chmod 770 and now I'm curious what the first command did exactly. After typing chmod 7760 , I typed ls -Al and the directory name was ...
Jamal McTravis's user avatar
0 votes
2 answers
3k views

nginx php can't write files on CentOS machine

I have this PHP code: <?php $myfile = fopen("testfile.txt", "w") ?> And the following permissions in my /usr/share/nginx/html directory drwxrwxrwx. 3 root root 4096 Nov 20 08:51 . drwxr-xr-x....
ctrlz's user avatar
  • 141
0 votes
1 answer
1k views

Make newly created or uploaded (via ftp) files belongs to a group by default

Each time you create a file or upload it via FTP, considering your user is "myuser", it's chwon would be "myuser" for user and "myuser" for group. So you have to manually execute chown command to ...
Christopher Francisco's user avatar
1 vote
1 answer
1k views

How to give apache ownership rights when creating a new file? [Centos 6]

So, is it possible to make multiple users the owner of a file when created? I mean, I know you can do chown -R apache:permissions /var/www/ (48:500) but that is only temporary because even if I decide ...
john's user avatar
  • 21
2 votes
3 answers
3k views

"chmod -R 777 /" for a few seconds - now what?

On Centos 6.5 I accidentally typed chmod -R 777 / Ooops. I CTRL + C'ed out of it very quickly, but not before it'd started working away for a couple of seconds. Consequences? Well, already su ...
rastaboym's user avatar
1 vote
1 answer
170 views

Able to copy folders but not files to directory

I am currently using CentOS 6.5 and trying to share files over a samba share. On the other machine is Windows 8 x64. I am able to transfer folders from Windows to CentOS over without issues but ...
Hong Yi's user avatar
  • 111
21 votes
2 answers
87k views

How to chown directory for multiple users?

Specs: Running Centos 6 64 Bit I am trying to chown a directory for all users on the VPS, aswell as for apache. But for some reason I can only have either apache, or just the users. I tried doing ...
Travis's user avatar
  • 383
0 votes
1 answer
1k views

ACL's Centos Linux - Not being inherited

Trying to work out the needed ACL's... OS is Centos Linux Situation: Folder called home. User called user1 and User called user2. user1 owns folder home, user2 has RWX to home also. With ACL's Im ...
Shane Geddes's user avatar
2 votes
1 answer
2k views

Restrict a user from accessing everything but a folder

I have a VPS running on CentOS 6. The parts inside the VPS are spread in different folders. My websites are in /var/www/html and some other key parts for my VPS are in /home/. Could someone give me ...
aborted's user avatar
  • 91
2 votes
2 answers
7k views

Unable to write files on CentOS

I have a VPS running on CentOS 6 and apache2 as webserver. I have several PHP scripts running in my server, and everything goes smooth, except to file writing. For some reason, my PHP scripts are ...
aborted's user avatar
  • 91
1 vote
1 answer
3k views

Do Linux devices require user permissions? If so, how are they added?

Trying to create a new virtual server using VirtualBox and phpVirtualBox on a physical Centos box. Installed the software and all seems good. Put the operating disk in the CD drive of the physical ...
user1032531's user avatar
  • 1,691
0 votes
1 answer
2k views

Proper procedure - sftp access to www folder - To be able to upload files

My www folder is root:root. What should it be? My site works perfectly but maybe I am doing something wrong. My nginx.conf says user is 'nginx'. Should I be changing the www onwership and group to ...
Jay's user avatar
  • 11
7 votes
2 answers
7k views

Group member cannot create files/directories in folder

I'm trying to set up my Linux server and I managed to get stuck at this point: I created a group called 'gitusers' and added a user to it (let's call him 'foo') I created a folder called 'website' I ...
MrSoundless's user avatar
1 vote
0 answers
1k views

More secure way to configure Centos/Apache for Multiple Users

I have a public Linux server running CentOS, Apache/PHP/MySQL. This server currently hosts multiple WordPress Blogs and Websites I am developing. Currently, I have "userdir" enabled, and set up ...
Mark Winterbottom's user avatar
2 votes
3 answers
9k views

How give the permission to access subfolders in /root?

I need give the permission to read/write in this folder, which are subfolder of /root directory to mike.jackson (for some reason someone crete this folder inside /root) : /root/Products/Metadata/...
Valter Silva's user avatar
  • 1,381

15 30 50 per page