Questions tagged [chmod]

A Unix tool for changing file permissions

248 questions
0
votes
1 answer

Mixed ftp ssh permission problem

I'm running a webserver and I've setup two groups. One with just me, and another with me and a collaborator. I've chmodded to 755 my htdocs folder and I gave a specifically "upload" dir the group shared with my collab. So now my collab (via sym…
Antonio Correnti
0
votes
2 answers

Protecting sites contained in the same Apache directory

I've set up all of my sites in different /var/www subdirectories. Let's say I have 5 sites based in a CMS like WordPress in /var/www/a.com, /var/www/b.com, /var/www/c.com, /var/www/d.com and /var/www/e.com. But I've found out that if I give admin…
SirLouen
  • 1
  • 5
0
votes
1 answer

Security-wise file ownership & permission setup for LEMP server to be managed via wp-cli and wordpress dashboard?

I'm on a LEMP VPS with the following setup; cd /home/$USER/public/myDomain.com # change directory to myDomain.com chown -R nginx:nginx . # change file ownership find . -type d -exec chmod 750 {} \; # change permissions…
Nick
  • 1
  • 2
0
votes
1 answer

Different permissions for guest and non-guest users in Samba

I am configuring a samba server for file sharing. I was wondering if there is a configuration setting to map different file or directory masks to different users. I am attempting to allow admin users to have full access to a share while restricting…
0
votes
2 answers

Recursive chmod of all vhosts httpdocs directories on CentOS/Plesk

A shared web hosting server running CentOS 7.8 with Plesk has the following directory structure for a few hundred vhosts: /var/www/vhosts/domain1.com/httpdocs/ /var/www/vhosts/domain2.com/httpdocs/ /var/www/vhosts/domain3.com/httpdocs/ httpdocs…
senectus
  • 103
  • 2
0
votes
0 answers

Security best practice: revoke execution (-x) permissions for directory, or do recursively to change every contained file?

I have a question about security best practice when configuring a device to be used to users, who should be able to use a programme, but not modify the system. Let's say I have a folder /opt/myapp containing numerous files that my programme reads.…
SLhark
  • 1
0
votes
1 answer

crontab not working for deleting a old files from log folder

I have this line in my crontab to delete old files: 1 * * * * find /var/log/abc/ -mtime +7 -type f -delete Unfortunately, it does not work. I have attempted to give all users permission to clear that folder using chmod +777 /var/log/abc But the…
Ginger
  • 103
  • 6
-1
votes
3 answers

Issues with file rights in CentOS

May someone explain me how to manage rights correctly pls? I have a file with these rights: 8 -rw-r--r--+ 1 sntecard sntecard 4669 Sep 18 12:34 index.php I am accessing this folder by user myuser and trying to modify it. Sure, I can't. Ok, I am…
Epsiloncool
  • 95
  • 2
  • 13
-1
votes
1 answer

File base permissions are 666, why and is this a configurable value?

It is specified in various documentation on the net that linux/unix file base permissions are 666 with regards to how umask manipulates. This is also relevant with regards to the fact that default ACL permissions enforce a rw mask for files created…
MetaChrome
  • 133
  • 10
-1
votes
1 answer

Unable to change access permissions on external ntfs Harddrive

I am fairly new with Linux when it comes to mounting hard drives, so hopefully this is a simple question. I recently purchased a 3TB hard drive that would have read/write access with both Mac and Linux. The first step I took was to format the hard…
-1
votes
1 answer

Trouble CHMODing a file (777)

In order to CHMOD 777 a file, am I using the command correctly? chmod 777 /var/www/html/core/database/connect.php I am trying to use it, but it isn't saying anything... like no error or not saying that is was a success. Just so you know, I am on a…
-1
votes
1 answer

FTP user not able to see or access anything?

I am trying to make an FTP account for a user, and it is not working. The user wants to be able to ftp to his sites home directory, and change stuff. I created a user(MEvans) and set the home directory to /var/www/html/domain.co.uk . In terminal,…
JPeroutek
  • 111
  • 1
  • 4
-1
votes
1 answer

linux automatic change permissions in resolv.file

In various linux servers I see how the permissions of the /etc/resolv.conf file change automatically. In state normal: -r--r--r-- 1 root root 103 Jul 4 11:50 resolv.conf In changed state: -r--r----- 1 root root 103 Jul 4 11:50 resolv.conf I…
rfmoz
  • 772
  • 9
  • 15
-1
votes
1 answer

chmod apply to user group

I need to set the permissions of a dir so that a usergroup in my ubuntu-server has read/write permissions. I understand that I'm supposed to use chmod (right?), but how do I set the permissions to only apply to a single usergroup?
AlexanderNajafi
  • 125
  • 1
  • 5
-2
votes
1 answer

Cannot write with dir permission 666, but can write with 777

I am using Kali as root user. I did setup an atftp server in a folder (created and owned by root) and gave 666 permission on that folder. But I noticed users get permission denied error while uploading into atftp. Same was happening with FTP server.…
1 2 3
16
17