1
vote
2answers
56 views

-bash: cd: .ssh/: Permission denied

When I type in cd .ssh in terminal, it returns with -bash: cd: .ssh/: Permission denied. Now I cannot add my ssh keys to ssh. When I type ssh-add ~/.ssh/idname it says /Users/Dan/.ssh/idname: ...
4
votes
2answers
62 views

777'd some files. How do I repair SSH?

So I'm messing around on a test server and accidentally ran the following (which resulting in SSH breaking): # chmod -R 777 /var Because it's a test server, I'd rather not re-install right now, I ...
0
votes
1answer
46 views

Webserver-User has no Shell-Access but needs SSH-Keys or Permission change of directory?

First of all: English is NOT my mother-tongue, so please bear with me if something is not as clean as it should be. So, regarding my previous question and a possible solution I was advised to ask for ...
2
votes
1answer
68 views

Linux motion user - run it as ssh key as pi to remote server

This question is related to the two other questions I had earlier, about enabling Raspberry Pi to act as a motion sensor that will try to ssh into a more powerful server when it detects motion (the ...
1
vote
1answer
187 views

OpenELEC, non-root user, home directory, SSH

I'm running OpenELEC on Raspberry Pi As you know, directory /storage is a shared home folder between user root and user openelec This makes a problem when you want to setup ssh key authentication for ...
2
votes
0answers
988 views

fatal: bad ownership or modes for chroot directory component “/”

I used to be able to connect via ssh with the user I have created but now I keep getting: "Write Failed: Broken Pipe" and I can only connect as root In the ssh auth.log I get the following: ...
1
vote
2answers
219 views

How to edit /etc/hosts without sudo?

I have a machine that I can only access using SSH. I was messing with the hostnames, and now it says: ssh: unable to resolve hostname I know how to fix it in /etc/hosts. Problem is, I need sudo ...
0
votes
1answer
177 views

Need to grant two users to an AIX server to just one folder [duplicate]

Ok, in our environment, most users (including myself as one of the unix admins) don't actually have admin rights directly on the aix servers. We login to a front unix server as ourselves without root ...
3
votes
3answers
3k views

What is the right file permission for a .pem file to SSH and SCP

I have tried to SSH into my AWS ubuntu server and copy the directory to my local machine. Throughout the process I experience different file permission errors (noted below). Is there one specific ...
0
votes
1answer
2k views

Why am I getting git error “remote: error: unable to create temporary file: No such file or directory” on push?

This problem is getting weirder. My original post follows, but here is the new thing I discovered: I executed git push and it gave me its usual error: Counting objects: 9, done. Delta ...
2
votes
1answer
194 views

Permission issues when doing system backup using rsync [duplicate]

I'm trying to backup my linux system (arch linux on a laptop) to a remote computer on the same network using ssh (or NFS). I use rsync extensively to backup my /home directory to the remote computer ...
1
vote
2answers
103 views

Can't ssh to a machine

All of a sudden, I couldn't ssh to a machine to which I used to ssh earlier. Consider I am ssh-ing from A to B. Output when I run ssh root@ip_addr_of_B I get: Permission denied ...
1
vote
1answer
469 views

How to setup SVN server permissions properly?

I use Debian 7 and have Subversion installed. I can't figure out what permissions and owners to set to the repositories once I create them. I want to have 2 types of repositories: 1) svn/private/* ...
3
votes
2answers
2k views

Create user who can only access one directory [duplicate]

I would like to create a user that only has access to one folder and nothing else whatsoever. I have already created a user but he has access to other parts of the system according to corresponding ...
2
votes
1answer
307 views

Can't login to remote debian system with RSA key and ssh.exe from Cygwin

I need to login to a Debian server using ssh.exe from Cygwin. I've generated an RSA key and appended it to the authorized_keys file. Debian is OK, because I was able to use the RSA key using PuTTY ...
2
votes
1answer
239 views

How do I grant someone else access to my linux server

If you administer a Linux server, what steps do you take to properly grant someone else access? Assuming they will log in over ssh, don't already have an account, and will need root access. ...
3
votes
2answers
741 views

Block SSH to all but root user

How can I modify my sshd_config so that it blocks access to all users except the root user? I've had a look and I tried AllowUsers root DenyUsers * But that doesn't do anything
4
votes
1answer
879 views

scp permission denied after 'hardening' with bastille

I recently 'hardened' two Ubuntu servers using Bastille, and now I get permission denied: scp whenever I try to scp files in. SSH login works fine. I've tried adding an /scp-dump folder with 777 ...
3
votes
3answers
3k views

How do I backup via rsync to a remote machine, preserving permissions and ownership?

Drive A is 2TB in a closet at home. Drive B is 2TB in my office at work. I'd like drive A to be the one I use regularly and to have rsync mirror A to B nightly/weekly. The problem I have with this ...
2
votes
5answers
16k views

Transfer files using scp: permission denied

I try to transfer files from remote computer using ssh to my computer : scp My_file.txt user_id@server:/Home This should put My_file.txt in the home folder on my own computer, right? I get ...
5
votes
5answers
553 views

How to setup password-less ssh with RSA keys

I am trying to setup a password-less SSH configuration between two machines and am having trouble. There are a ton of howtos out there that I have followed and have had no success. Here are ...
2
votes
3answers
951 views

Limited SSH user on Ubuntu 12

I'm running Minecraft on a server. How can I give my friend SSH access just to the minecraft folder (a root folder), the screen command, and some ports?
7
votes
3answers
633 views

Prevent a unix account from being able to SSH [duplicate]

Possible Duplicate: Disable direct login for normal users (like oracle) in linux but allow scp and sftp? I want to prevent a unix account from being able to be SSH'ed with, but it should ...
1
vote
1answer
1k views

How to create an user only with SSH -access and easily-set-up .ssh -dir perms?

I often mess up when I manually set up the .ssh -dir, easy to forget some flag. I often need to create a new user and only allowing access with SSH, how can I do that? Basically, I want to stop doing ...
7
votes
3answers
5k views

Give user permissions to all files and folders

I want to have a user who has access to all the files and folders on the system. This is for the purpose of using RSYNC on a local machine to backup a remote machine. At the moment we are using the ...
7
votes
2answers
15k views

SSH and home directory permissions

It took me hours to solve this SSH problem with one of my class accounts on my school's servers. I couldn't ssh into one particular class account without entering my password, while passwordless ...
3
votes
5answers
1k views

Configure permissions

I'm sharing a git repository with a friend over SSH. He pushes from and pulls to his git repository using my machine's SSH server, where the shared git repository is. Problem is that when he pushes a ...
0
votes
2answers
500 views

Files uploaded as root to the web server can't be overwritten by web application

Here is my problem. I am developing a web application in PHP/MySQL and I am having some problems setting up the accounts I need to use. Development workstation: WinXP SP3, Eclipse PDT Development ...
2
votes
1answer
126 views

Suddenly changing users [closed]

Has anyone ever encountered a scenario where you are logged into a system going about your standard business, cat, ls, tail, grep, vim, find etc. and suddenly permissions to regular things stop ...
5
votes
2answers
18k views

How to add a ssh user who only has permissions to access specific folder?

How to add an ssh user who only has permissions to access specific folder? useradd -d /var/www/xyz.com.tr/musteri -s /bin/bash -g sshd musteri I created a user called musteri. I set its home ...
2
votes
2answers
460 views

I can create a file but I can't read from it

I've been using linux for a while, but I always had root access, so permission problems were no big deal. But now I don't have root access and it's driving me mad. I have a ssh access to a web ...
3
votes
2answers
376 views

File permissions when transferring to another server

If I was to chmod 777 blah.sh on server A and then move it to server B, would it retain the permissions, or would it default to some other permissions once it hit server B?
4
votes
2answers
18k views

Why do I get an “rsync: failed to set times on … : Operation not permitted (1)” error on Ubuntu 10.10 with SME Server 7.4? [duplicate]

I am trying to cron an rsync via ssh between two fileservers that are running SME Server 7.4 and Ubuntu 10.10, respectively. The first rsync worked just fine (for reasons that I do not know), but now, ...