New answers tagged

1

That is not a feature of rsync, it's a (missing) feature of your target file system. My guess is that the target file system is an USB storage with NTFS or FAT file system. These file systems don't support changing the executable flag.


2

Would you believe it, I had a brainwave just moments after asking the question. I opened PowerShell and used net localgroup foo-group foo\mike /add. Hey presto, the domain user is now in the local group.


0

I'm also using a vfat formatted Truecrypt volume for the same compatibility reasons. But on Linux, using tcplay to mount it from a script. In such a case, instead of editing fstab, the solution is to directly add the umask=077 option to the mount command. This is the relevant part of the script I use: uid=$(id -u) gid=$(id -g) # ... losetup and tcplay ...


0

Solved! I got an answer on a different forum. For this particular issue to work correctly, the directory chain including "images" needs to have eXecute permissions (navigate or cd in case of directories) and the images dir where nginx writes needs Write permissions too. So the images directory needs to be set to 0770 in my setup, and all ...


0

The core problem might not be the file permissions, but that you are running PHP as www-data instead of running a PHP-FPM pool as user callkneehill. When you run the scripts as the same user that owns them, you don't need this kind of hacks. On a multi-user system this is also essential as it prevents the users from modifying the sites of other users. There ...


2

The meaning of the exclamation mark is only given in ls info page, not in its man page: '-Z' '--context' '--scontext' '--lcontext' '--format=context' Display the SELinux security context or '?' if none is found. '-Z' counts as format option and enables displaying of SELinux context. '--scontext' prints SELinux context left to the file name. '--lcontext' ...


0

In this tutorial for Using Unix sockets instead of ports, this command worked: uwsgi --socket mysite_nginx.sock --wsgi-file test.py --chmod-socket=666


0

I figured it out. I had to set the GID with chmod g+s log More Informations


0

I would like to suggest you to configure it via console. Create a new role with CloudWatchFullAccess Attach with required EC2 intance


0

I don't have a good answer for you, other than I have been looking for the exact same thing for about 6 hours today and there is no good way to do it except for using LDAP to manage users across your Proxmox node. My search led me to rpc.idmapd and idmapd.conf which at first sounds great...just specify which user on your Linux Mint machine corresponds with ...


1

Your requirements are hard to fullfil. BTW sshd works this way - it runs as root, during authentication it spawns a process under sshd user, then it spawns process under user which logs in. sftp-server can't make owner of file other user than one who has logged in. IMO as you don't want to use shared group, you have only one option. workaround it - ie. ...


2

You can set up multiple PHP-FPM process pools in different chroot environments. Then, all requests except example.com/blog/ would be redirected to the PHP-FPM store pool and /blog/ requests would be passed to blog pool. Running the pools in different chroot environments ensures that one pool cannot access files for another environment.


0

I had a similar problem and adding this to AWS Policy hepled me { "Sid": "AllowReadingResourcesForTags", "Effect": "Allow", "Action": "tag:GetResources", "Resource": "*" } Found it here https://grafana.com/docs/grafana/latest/datasources/cloudwatch/


0

As everyone suggests there is no way to bypass the security checks. But you can create a copy of the key and change the permissions on this key: # Copy your key to a new location cp <<your_key>> <<new_key>> # Make sure you are the owner chown <<your_user>>:<<your_user>> <<new_key>> # Give yourself ...


0

Check the mail cron sends to root containing the console output of your command. This will tell you what went wrong.


1

You have to use the full path in cronjobs. So find out the full path to news users (/bin/newusers/) or whatever it is, and place that in your cronjob. You can find the full path by typing which newusers


1

This is the most frequently referred to website for this problem. Just had this enlightenment on a new setup of Windows 7 on my desktop. A week of frustration led me to use this command on my Linux system sudo mount -v -t cifs -o user=username,vers=2.1 '//h18/Public/' /media/h18 h18 can be the URL as 192.168.0.4 /media/h18 is the directory on the Linux/Unix ...


0

You can use this to self-elevate a script when ran: #at top of script if (! #current role (New-Object Security.Principal.WindowsPrincipal( [Security.Principal.WindowsIdentity]::GetCurrent() #is admin? )).IsInRole( [Security.Principal.WindowsBuiltInRole]::Administrator ) ) { #elevate script and exit current non-elevated ...


1

I can't tell how to change the gid from Virtualbox side, but you can use the special gid (sgid) to the shared directory, so that every file created or copied (beware, not moved) in there will have their group ownership set to that of the directory. I'll assume that the shared directory is /shared. First ensure that the shared directory's owner and group is ...


Top 50 recent answers are included