Questions tagged [chgrp]

19 questions
16
votes
4 answers

Specify default group and permissions for new files in a certain directory

I have a certain directory in which there is a project shared by multiple users. These users use SSH to gain access to this directory and modify/create files. This project should only be writeable to a certain group of users: lets call it "mygroup".…
mislav
  • 263
  • 1
  • 3
  • 7
9
votes
1 answer

OSX equivalent to sudo chgrp -R www-data

I normally do sudo chgrp -R www-data on Ubuntu to set a folder writable by the Apache process. What's the Mac OS X equivalent for www-data?
anjanesh
  • 327
  • 1
  • 3
  • 9
3
votes
1 answer

rsync encounters chgrp errors despite --no-g

I am using rsync to sync a directory to a USB-mounted device. That device automounts with myuser:root ownership. When I rsync my directory (that has myuser:myuser ownership) with -a, I get many of the following errors: rsync: chgrp "filename"…
jrdioko
  • 567
  • 5
  • 9
  • 18
2
votes
1 answer

How to make new files automatically belong to group?

I have used chgrp for the 'logs' and 'cache' directories, and chmod 770, so both the linux user asigned to that site (used to execute scripts from the command-line), and the user 'apache' can read/write log and cache files (because both users belong…
1
vote
1 answer

how to add a dot recursive in file/folders permissions

example of files with there permissions -rwxr-xr-x. 1 root root 659 Jan 4 2018 zookeeper-server-initialize -rwxr-xr-x. 1 root root 649 Jan 4 2018 zookeeper-server-cleanup -rwxr-xr-x. 1 root root 648 Jan 4 2018 zookeeper-server -rwxr-xr-x.…
shalom
  • 451
  • 12
  • 26
1
vote
1 answer

vsftpd can't upload to mounted directory

I have read many, many help pages today trying to fix this, and I'm still nowhere closer. vsftpd config…
monkeymatrix
  • 167
  • 1
  • 2
  • 7
1
vote
1 answer

chgrp to group I am not a member of

I'm creating git repositories, ldap accounts and ldap groups using PHP application. Everything works fine, but I have a problem to set right permissions to git repositories. Every ldap user is a member of some ldap group, so I want to change group…
Peter Krejci
  • 123
  • 5
1
vote
0 answers

Running trac on a debian server - error writing to trac.ini

I have trac running on my debian server and I set it up using mod_wsgi through apache. Now I have everything setup nicely, except I can never seem to write to a projects trac.ini file through the site. I have set the ini file to be writable: sudo…
ingh.am
  • 273
  • 3
  • 15
1
vote
0 answers

can't assign permission for a folder to a group only one owner works

I'm trying to change permissions on a folder as root on Centos server using: chgrp -Rv ftpusers /var/www/html seems like everything is right in verbose. I have two users in ftpusers group however, only user1 can write to html folder. So I have to…
john206
  • 109
  • 4
1
vote
2 answers

Safe way to allow users to chgrp to www-data

I have a small webserver used by some friends to host personal websites. Occasionally they need to make a folder for uploads that can be written to by the webserver (www-data). Is there a safe way to allow a regualar user (not in sudoers) to set a…
Rob
  • 185
  • 1
  • 8
1
vote
1 answer

NFSV4 w/CHMOD & CHGRP

I'm just starting off with NFSV4 and had a few questions. So normally when creating an NFS share on a NAS filer and mounting on a client I would run a chmod & chgrp to set things up the way I want. Now, I have done that already on existing…
0
votes
1 answer

SSH: FTP created logs into the wrong directory

Ok here's the deal - im new to SSH and have been googling around trying to figure this out. Objective for me has been to create a FTP user that can login only to: /var/www/mydomain.com/ - however what I experience is that the user I create gets…
user1231561
  • 123
  • 2
0
votes
3 answers

How to auto chown/chgrp files after FTP upload?

I have a new VPS setup with Debian + LEMP stack. Wondering how to automatically chown/chgrp new files uploaded via FTP to /srv/www/siteroot to www-data:www-data? I am under the assumption this can be with a proper umask?
filmoreha
  • 221
  • 1
  • 3
  • 7
0
votes
1 answer

How do I enable a group of users to edit files in Ubuntu var/www?

I'm hoping someone will be able to direct or help me understand how I can enable multiple users to edit the same files/folders in Ubuntu EC2 server (11.10). I currently use Transmit, the Terminal window, and Wordpress to upload files to the WP…
rs77
  • 125
  • 5
0
votes
4 answers

Operation not permitted

I have a server on Amazon ec2, When I try to change group file (chgrp danny /tmp/bla) I get "Operation not permitted". (I don't want to use "sudo") Anyone know the problem?
Oren
  • 9
  • 2
1
2