Tag Info

Hot answers tagged

5

You can't... If, as I assume, you have a restricted account without the privileges to run sudo and access the folders as root. As far as I know, there should (and it would be a serious security issue if not) be NO chance to get ownership of another user's data except for root users. So you have to ask your local admin to do this for you! And think: What ...


2

The best method I was able to find is the fstab entry below for the desired NTFS drive: UUID=473577933B1627FB /media/username/Data\040Drive ntfs nosuid,nodev,nofail,x-gvfs-show 0 0 You will have full permissions to the mounted drive. This was done on ubuntu 14.10


2

You can prepend sudo to all the commands. Make sure to run the script as root, the unprivileged user will be put in as needed #/bin/bash do-something-neat # Run as invoking user (root) sudo -u randomuser do-something-else # Run as "randomuser" user make potato --type=Mashed # Run as invoking user (root) ...


1

Sounds like you're running suPHP judging by the error. www-data has a uid and gid of less than 500. Create a new user for that website with a uid over 500 and associated group with a gid higher than 500, and chown those files to that new user. There may be some other settings that need changing (been a little while since I've used suphp), but that's the crux ...


1

Are you sure that www-data needs to do chroot? Please explain why. There is no way to get /bin/chown to restrict UIDs. You will have to write a wrapper around /bin/chown that does the input validation, then calls the real /bin/chroot, then allow www-data access only to the wrapper.


1

With a bit of playing around I've managed to come up with a semi solution (not perfect but good enough) using 2707974 answer and information I've gained else where I've been able to get what I need. First you need vsftp and PAM installed apt-get install vsftpd libpam-pwdfile Edit /etc/vsftpd.conf nano /etc/vsftpd.conf then paste in the following ...


1

Folder /var/www/html/Panel4/uploads/microsite has a SGID enabled. The microsite directory, its parent directory and all its sub-directories have SGID enabled and which can be identified with the s bit set in group part of the permission drwxr-sr-x. As SGID is set any folder that is created within it will have group-id set to that of the parent directory. ...



Only top voted, non community-wiki answers of a minimum length are eligible