Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to set up git using my Synology DS212J NAS Server.

I've been following these instructions: http://www.wonko.de/2010/04/set-up-git-on-synology-nas.html

But I am very much a beginner with git.

So far I am stuck on the part where it says to:

Then edit /etc/passwd to enable the user for ssh use. We change he home dir set the login shell:

...
user1:x:1026:100::/volume1/home/user1:/bin/sh 
...

I keep getting:

-ash: user1:x:1026:100::/volume1/home/user1:/bin/sh: not found

Does anyone have any ideas?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

It appears that your are just typing the line into the shell, you need to edit the /etc/passwd file as it says (using vi or whatever editor you have installed) and add the line (assuming user):

vi /etc/passed

Go to the end of the file, hit shift-a to get to insert mode, hit Enter to start a new line, and paste the following:

user1:x:1026:100::/volume1/home/user1:/bin/sh 

Then Esc Then save the file:

:wq
share|improve this answer
    
Thank you so much! That did the trick perfectly :D –  Jay May 27 '12 at 11:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.