PDA

Bekijk de volledige versie : /etc/passwd problem!!!



sollie
06-01-2007, 14:01
I almost have everything working without enabling USBA modus.

I took kfurge advice to make a /opt/home/root. I added a .profile file (trough nano, "ipkg install nano"). This solves the problem below:

export PATH=/opt/bin:${PATH}
export LD_LIBRARY_PATH=/opt/lib:${LD_LIBRARY_PATH}

I changed /etc/passwd (nano /etc/passwd), now i use:

root:blabla:0:4200:root:/opt/home/root:/opt/bin/bash
guest::35000:42000:guest:/:/bin/sh
MYSHARE1:blabla:35007:42000:MYSHARE1:/dev/null:/bin/false

This all works perfectly. I can use ctorrent etc.

Now my last problem, when i reboot the router the new /etc/passwd is gone. i can only find the default one. So i have to edit /etc/passwd again.

Is there a way to fix this???

Sollie.

PS: i love this project, hehe :)

n00ben
06-01-2007, 14:43
perhaps in rc.local you could copy the proper passwd over the original so each time you boot passwd is being overwritten...

/regards
Henrik

sollie
06-01-2007, 16:11
http://wl700g.info/showthread.php?t=7778

Here is the answer.

Thanks for all.