DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-11-23 16:10:49

breasthead
Member
Registered: 2009-02-05
Posts: 38

reset the nobody user?

Hi all,

I'm having some trouble installing Transmission, and I think it has something to do with my 'nobody' user.

Basically I need to run a command in the format:

#su -c nobody "<some transmission command>"
and I get some error that
su: cannot run /bin/sh:/ffp/bin/bash: No such file or directory

So I did some testing, and I only get this problem when I try and run a command as the nobody user.

Code:

# su -c nobody "echo Hi" 
su: cannot run /bin/sh:/ffp/bin/bash: No such file or directory
# su -c root "echo Hi"
Hi
# su -c brent "echo Hi"
Hi

I was following a guide the other day which was doing something with the nobody user (something I didn't understand) and I guess that I've buggered it up.

Is there some way to reset the nobody user to the 'default'?

Offline

 

#2 2010-11-23 16:58:20

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: reset the nobody user?

Check this thread
http://dns323.kood.org/forum/viewtopic.php?id=6109

See if user nobody is correct in your passwd file.


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#3 2010-11-23 17:01:00

bound4h
Member
Registered: 2010-04-12
Posts: 209

Re: reset the nobody user?

what does your passwd file even have in it?

try 'cat /etc/passwd' and post results.

Also, is it possible that the PATH is not set for the user nobody?  Or is PATH a global environment variable and not a user variable?

Offline

 

#4 2010-11-24 08:43:21

breasthead
Member
Registered: 2009-02-05
Posts: 38

Re: reset the nobody user?

Hi guys,

Thanks for the replies, and indeed both of you were correct about the problem.
For some reason I'd changed the 'nobody' user info so /etc/passwd was stuffed.

All fixed up now by changing back to how it should be with

Code:

usermod -s /bin/sh nobody

(Thanks to KyleK in the Transmission thread for the code)

Cheers,
B

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB