0
votes
0answers
14 views

Newly setup Centos 6 server, cloning from .GIT as user other than ROOT [duplicate]

Apologies for being so new and lost, i'm brand new to all of this and the more I search the more I feel I'm getting closer, but then realize i'm lost. I setup a CentOS 6 server on an Amazon E2 ...
0
votes
1answer
23 views

scp to remote server permission denied

I try to copy files to a remote server (OSXServer) using scp. I have 2 user accounts on that server with what I thought the exact same settings. Now I tried the copying files into the respective home ...
2
votes
1answer
164 views

FTP 550: Permission Denied

I suddenly get the error 550: Permission Denied in Filezilla when I try to create a new directory. A few days ago I changed some settings on the server regarding ssl and imap settings, but I don't ...
0
votes
0answers
9 views

ubuntu 12.04 - sftp umask with usergroups_enab [duplicate]

In /etc/login.defs I have UMASK 022 and USERGROUPS_ENAB yes This works as expected when logging in through ssh as a user in a single-user group (eg, admin:admin). I end up with 0002 as the umask. ...
0
votes
1answer
60 views

Cannot find home directory on Linux Server

I have recently been granted access to a Linux server where I transferred some data. Now, for some reason, when I use WinSCP or any other program to connect to the server, instead of logging in ...
0
votes
0answers
74 views

Creating SFTP Users chrootdirectory /var/www

I am trying to create a new sftp user in Ubuntu 12.04.4 and am running into some trouble. After creating the first sftp user, I document the commands for later user and then delete the user and try ...
-1
votes
1answer
84 views

Force ssh to ignore id_rsa permissions

I have a very specific requirement that requires a private key to be used by multiple users. I know how bad this is. The problem is that if the identity file's permission is to permissive (444 in my ...
0
votes
1answer
209 views

ssh agent forwarding fails with “Could not open a connection to your authentication agent”

I receive a Could not open a connection to your authentication agent error message when I attempt to connect from an intermediate server to a third server using the agent forwarding option (-A) of an ...
1
vote
1answer
202 views

Chroot issue, broken pipe

I need to give access to a developer to our server vía ssh. I hosted his web on /home/miuser and some other web applications in /home/... I have this config in my Subsystem sftp internal-sftp Match ...
0
votes
1answer
218 views

difference between /bin/sh and /bin/bash(chrooted)

I am stuck in this issue: I have a new server which i access thru ssh, using PuTTy. In Configuration, i need to select which ssh shell i need in order to access the server with ssh. choices: ...
-2
votes
3answers
116 views

How do you create a new user with access to /var/www/html with ssh?

I Need new sftp login details for developers but that is restricted to /var/www/html/ using ssh. They have to be able to edit and save files, also when the user makes changes I don't want the group ...
1
vote
2answers
2k views

rsync as root to /var/www failing with “protocol version mismatch”

I'm trying to set up a one command way to move website code from a dev machine up into my Ubuntu EC2 instance and have it be copied straight into the /var/www/mywebsite folder where nginx expects to ...
0
votes
1answer
193 views

cannot modify sshd_config as Root (centos)

After looking through several threads on securing SSH on our server and have run into a little trouble when modifying sshd_config. I went through making the relevant changes and when I exit the file ...
3
votes
1answer
288 views

SFTP user can't edit or create files

Server: Ubuntu 12.04 LTS I am using openSSH and have created an SFTP user called bob who belongs to group sftponly. I have chrooted bob to his home directory which is /usr/share/nginx/www/bob/. bob ...
0
votes
0answers
113 views

Permission denied when trying to run a script at EC2 using ssh

I have an instance at AWS which contains an application deployment script in my home folder. The script contains sudo commands. I need to run this script automatically from a program at my local ...
1
vote
1answer
123 views

User and group permissions in access.conf

How do I configure access.conf so that the following rule is applied? : Allow the user dia to connect from 192.152.100. Deny the user sim to connect from 192.152.100. Particularity : both the users ...
1
vote
3answers
462 views

Cannot login after chmod o -rwx

I have typed a recursive chmod o-rwx command from root in a linux via ssh. After that I can not login as root anymore. It is a huge problem now. Can I do anything to do to resolve this? I can only ...
0
votes
0answers
526 views

Cloning Git repo from server to local machine - is my user level to blame?

Server: CentOS 5.7 Local machine: Macbook Pro, regular terminal client Command issued: git clone --bare ssh://myuser@xxx.xxx.xxx.xxx/home/projectname/public_html ~/gitrepos/projectname.git ...
4
votes
4answers
3k views

Running git pull from a php script

I was trying the Perfect Workflow, with Git, GitHub, and SSH, but it seems i can't run git pull. I've tried git status and it's fine. When i git pull 2>&1 i get: error: cannot open ...
2
votes
3answers
2k views

ssh login successful, but scp password gives me “Permission denied”

I'm trying to get some blogging software up on an organizational remote server. I tried to set up a SSH Key but was having problems and decided that getting the blog up and running was more important ...
1
vote
2answers
377 views

SSH: Give user read/write permissions [closed]

How do I give a user certain read/write permissions?
0
votes
1answer
117 views

ssh permission denied in terminal but not inNautilus

I have two Ubuntu machines on the same network. I installed openssh-server and client. When I try to connect through the terminal i get the following message: "Permission denied, please try again" . ...
2
votes
3answers
561 views

PHP mail() function freezing

I had an issue where the permissions of /var/lib/php/session got overwritten so I could no longer created session variables in PHP. I think the same thing is happening with my mail function. Where ...
0
votes
1answer
83 views

Secure Access to NFS Share?

Is it safe to use an NFS share as the root of a web directory on another server? Under this config, multiple users would place their files on the NFS (not the web server). How would you go about ...
3
votes
1answer
846 views

Jail User to /var/www/username Directory via SSH

I have multiple folders in /var/www for different websites -- Apache uses name-based Virtual Hosts (Ubuntu Server). Suppose I want to allow someone to access their /var/www/user directory, but not cd ...
1
vote
3answers
1k views

Amazon EC2 SSH: Permission denied

I just created a new instance with Ubuntu (natty) AMI. After logging in with ssh -i key.pem ubuntu@ip user, I did sudo adduser timmy and added timmy to admin, sudo adduser timmy admin. But when I try ...
2
votes
2answers
487 views

What's the logic of default permissions of /etc/ssh/ssh_known_hosts?

By default, Debian and Ubuntu (at least) set /etc/ssh/ssh_known_hosts without read permission for others. What's the logic behind that? I can't think of any security risks with o+r, and, on the other ...
2
votes
1answer
305 views

Why does ssh-agent have SGID set?

In the openssh Red Hat package, I noticed that the ssh-agent executable has the SGID permission set: $ ls -l /usr/bin/ssh-agent -rwxr-sr-x 1 root nobody 113648 Nov 24 2010 /usr/bin/ssh-agent Why ...
1
vote
1answer
750 views

Why is SSH suddenly complaining about permissions on .ssh directory?

This morning when connecting to my Ubuntu VPS, my local computer is suddenly complaining about my private key: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: ...
4
votes
2answers
2k views

RSync over SSH - permission denied even though the user is in the root group

I have a need to copy files between servers through the web. I'm using RSYNC over ssh to do so. The problem is, I need to be able to transfer files, no matter where the files is. I created a user ...
2
votes
1answer
3k views

Set default umask for everything in Debian Squeese, included sftp

How can I change the umask for ssh and sftp in debian squeeze. I have changed the umask from 022 to 002 in /etc/profile and /etc/login.defs and modified Subsystem sftp ...
4
votes
3answers
4k views

How to view who owns a file?

I know to change an owner you put chown user:group file but what if I want to see who owns a file? The issue I am having is I created a user at /var/www/new-user but when he uploads new files ...
0
votes
2answers
547 views

Debian add user permission

I'm giving my friend a host on my dedicated server. I created a new user for him: Debian server. adduser friend Adding user `friend' ... Adding new group `friend' (1000) ... Adding new user ...
1
vote
1answer
404 views

Via ssh, git-checkout into directory the user doesn't own: “Permission denied”

Using git push server I push to a remote bare git-repository via ssh. The git-repository on the server has a post-receive hook which runs git checkout -f in /var/www/vhosts/domain.com/preview (working ...
3
votes
1answer
3k views

“debug1: read_passphrase: can't open /dev/tty: No such device or address” when trying to connect through SSH

I am trying to connect to my server using ssh user@server.com -vv I get debug1: read_passphrase: can't open /dev/tty: No such device or address error or just Permission denied, please try ...
10
votes
4answers
8k views

How to get full control of umask/PAM/permissions?

// Updated Feb 8 - Outstanding issues in brief: How to umask directories differently from files? How to umask on Nautilus copy/paste? How to set umask for SSHFS? OUR SITUATION Several people from ...
2
votes
3answers
821 views

Unable to connect to my own system through SSH

My Fedora system is connected to the internet through a proxy server and we have IPs assigned to every system connected via LAN - mine has 192.168.0.103 (by the way, what is this kind of IP called? ...
1
vote
2answers
344 views

How to host files from public_html while still preserving security of ~/.ssh/

I have two conflicting needs. I'd like to serve files with Apache out of /home/steve/public_html/ which according to the documentation I've read, requires me to set a+rwx on /home/steve/. I'd also ...
0
votes
3answers
478 views

Fixing CHMOD for uploaded files

I just uploaded a bunch of files to my server and none of them uploaded with proper permissions. How can I ensure that by default any files uploaded get uploaded with 775 permissions unless I adjust ...
0
votes
1answer
2k views

Permission denied (publickey) when trying to ssh into an ec2 machine (-v details included)

i could not ssh into my machine - the ssh process does not seem to be trying the right key (i could be wrong). By the way, this was after a reboot. The keypair that is typically used is: ...
0
votes
3answers
1k views

Change permission of files with the owner 'apache'

Hay, i have some files on my server with the owner set to "apache", I'm not quite sure how this happened. Anyway, i need to change the permission of these files to 0777 so i can download/edit them. ...
1
vote
2answers
777 views

Adding a new user into linux from a script

I am using a customized Redmine installation to manage projects. I have managed to hook the addition of new users and send the login information to a bash script I have. Below is my script: #!/bin/sh ...
8
votes
2answers
8k views

How do I set default permissions for SFTP for an Ubuntu Server?

We have an Ubuntu 10.04 server. How can I set it so that new files created (or copied) over SFTP or SSH have g+rw and g+rwx permissions (where appropriate)? I'm also using setgid (chmod g+s) so that ...
1
vote
3answers
130 views

how to I change the owner of a folder on my server?

OK I'll be more specific - I have uploaded a bunch of folders via ftp. These now all have the the owner name of the account which I logged into FTP using. How do I change the owner to be the server ...
1
vote
3answers
730 views

need to delete files owned by apache - unsure how to do that

Running apache on rhel server and sometimes I need to delete some files that I can not using my FTP program, because the FTP account I am logged into is not the apache user. I am on a Mac and there ...
1
vote
2answers
79 views

how to have files created by CMS have the same ownership as SSH user

I am having difficulty on our ubuntu server whereby I have an SSH user that when I create files using this user the ownership is web_user:www-data The problem is when a file is uploaded or created ...
3
votes
2answers
3k views

How to prevent ssh git push to set file ownership?

I have a remote bare Git repository on an Ubuntu server, where the files are owned by the user my_project and the group my_project, with permissions set accordingly. All commiters are themself in the ...
2
votes
1answer
4k views

CopSSH SFTP — limit users access to their home directory only

Let me preface this by saying I've read and followed these instructions at the FAQ many times: http://www.itefix.no/i2/node/37 It does not do what the title claims... It allows every user access to ...
2
votes
3answers
1k views

Giving PHP the permission to make a git pull request

I would like to allow PHP to execute a Git pull command. But there are some problems with the user and permissions. How did you solve the problem? PHP runs as user www-data. Therefore I've changed ...
0
votes
2answers
1k views

Permission problem with Git (over SSH) on FreeBSD

We're having permission problem with Git on FreeBSD. The setup is fairly straight forward. We have a few different repos on the same server. For simplicity, let's say they reside in /git/repo1 and ...