Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Seems like something which should be easy to find but Googling brings up lots of unrelated tasks.
I have a deploy scipt which runs under the user "deploy" but my web server runs as "nginx" I want the web server to be able to write to the deployed files.
Ive added nginx to the deploy user group and I believe I can write files with deploy user with the ownership "nginx:deploy" easily now but by default it creates files as "deploy:deploy" obviously which nginx won't write too.
Is there anyway to change the user so that by default creates files as "nginx:deploy" to solve this problem?
The install command has options to control the owner and group of the files it creates. But in general, only root can create files as a different user. Maybe you can configure sudoers to let the deploy user run the commands it needs with sudo as the nginx user.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I'm running Raspbian Lite on a Raspberry Pi 2. I'm trying to have vsftpd set up with one user called admin to have root access for FTP, while all other users (such as filetransfer) get redirected to their home directory. Any help would be greatly appreciated :)
I gather you're using vsftpd's chroot_local_user setting to keep users within their home directories. If that's enabled, you can use the chroot_list_file setting to pass a file containing the users you don't want to be locked in their home directories.
You can find out more on the vsftpd manual page.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I recently acquired a project from a former colleague, but the only information he gave me was the SSH key for a server and a bitbucket repository. I need to access the FTP of the server so I can change the files of the website.
I have zero experience with SSH or console commands. I have the repository but I don't know how to upload it. A friend of mine said that it's possible to pull a repo to the server, but I don't know how to even transcend in the folders of the server. I have just the console.
It says that the server's image is - ubuntu-1604-xenial-v20180127
And these are the only options I have - http://prntscr.com/p31inf
Also note that the website is running on Magento and I have no idea how it works. I'm a wordpress developer.
What you want is sftp: https://www.digitalocean.com/community/tutorials/how-to-use-sftp-to-securely-transfer-files-with-a-remote-server
So just use a ftp-client like filezilla and select sftp as protocol
Btw, magento is a little bit different than wordpress. Good luck ;)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I have a computer with Linux installed that is being used by several users. Included is a secondary data partition that is being shared between the users. But permissions are not easily handled. Anything created by a specific user, get's that user as owner. I was wondering if it would be possible to use fuse to some how mimic the way Android handled it's /data/media location?
I don't know how Android handles /data/media permissions and my solution does not involve FUSE, but if you create a group and add all users in it and set setgid bit on the root of the secondary file system and change it's group to group with all users then owner of each file will still be user that created the file but group of the file will contain all user and therefore they can access it if you set permissions on that file right (something like 660).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
Since I am not that experienced with Linux this might be an easy, if not too simple question for you. Recently I met an old friend of mine and I want to exchange some files with him. In fact I could send the files by E-Mail or share them by Dropbox or something like that but I want to make use of Linux and my RaspberryPi.
Here, the RaspberryPi can be accessed via SSH and I want my friend to be able to access one specific directory. The one where I place the files.
I don't want him to mess around in the system. Ideally he should be able to only see this one directory.
Is it enough if I create a user and put the files in his home directory?
Thanks in advance
See this introduction to permission management on Linux.
To answer your Question:
Is it enough if I create a user and put the files in his home directory?
Yes, but it's not a perfect solution because the home folder of an user contains some subfolders.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I like to ask how am I going to copy files from one of my Linux Server Account to other account? If anyone knows how, please help me.
Take a look at the man pages for scp. This is a very useful command that I use rather often at my job.
It works easiest if you are logged into the server that has the file you want to transfer (IMO). The syntax is scp src_file username#remote_host:dst_file, where the text that comes after the : in the second part is the destination path on the other server.
For example, if you have a file called "file.txt" on server1, and you want to put it on server2, you would type:
scp file.txt username#server2.name.or.ip:/home/other_username
or where ever you want to put the file. I would recommend copying the file first to your home directory on the other server as that minimizes issues with permissions, in my experience.
EDIT: If you want to log into the server that is going to receive the file, you can just swap the first and second arguments to copy from the remote server to the local one.