Discussion:
[rancid] su - rancid doesn't work.. What am I doing wrong here?
Sam Munzani
2008-04-29 02:35:03 UTC
Permalink
Hi,

Please tell me what am I doing wrong here? Its simple thing but for some
reason it doesn't work.

***@ubuntu:/var/lib/rancid$ sudo bash
***@ubuntu:/var/lib/rancid# id
uid=0(root) gid=0(root) groups=0(root)
***@ubuntu:/var/lib/rancid# su - rancid
***@ubuntu:/var/lib/rancid# id
uid=0(root) gid=0(root) groups=0(root)
***@ubuntu:/var/lib/rancid# more /etc/passwd
<< snip >>
rancid:x:111:122::/var/lib/rancid:/bin/false


I tried to su from my own account too and that doesn't work either.
***@ubuntu:/var/lib/rancid$ su - rancid
Password:
***@ubuntu:/var/lib/rancid$ id
uid=1000(smunzani) gid=1000(smunzani)
groups=4(adm),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),107(fuse),119(lpadmin),120(admin),1000(smunzani)

Why is not my su - rancid command working here? Any suggestions on what
should I be looking at? I am running ubuntu server 8.0.4.

Thanks,
Sam
Sam Munzani
2008-04-29 02:48:22 UTC
Permalink
I figured out that it has to do with /bin/false in /etc/passwd entry
instead of a real shell. Is that normal? If I can't su to rancid, how
can I run the scripts? Should I change that to /bin/sh?

Thanks,
Sam
Post by Sam Munzani
Hi,
Please tell me what am I doing wrong here? Its simple thing but for
some reason it doesn't work.
uid=0(root) gid=0(root) groups=0(root)
uid=0(root) gid=0(root) groups=0(root)
<< snip >>
rancid:x:111:122::/var/lib/rancid:/bin/false
I tried to su from my own account too and that doesn't work either.
uid=1000(smunzani) gid=1000(smunzani)
groups=4(adm),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),107(fuse),119(lpadmin),120(admin),1000(smunzani)
Why is not my su - rancid command working here? Any suggestions on
what should I be looking at? I am running ubuntu server 8.0.4.
Thanks,
Sam
------------------------------------------------------------------------
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Loading...