jaapjeuk
10-06-2006, 21:43
Hallo
Wie kan mij vertellen hoe ik met behulp van telnet (ingelogd op de wl500g) nieuwe groepen en gebruikers aan kan maken. Het commando adduser werkt niet en (veel) speuren op het internet levert ook niet het antwoord op.
De bedoeling is om de internetpagina's van wachtwoorden te voorzien en bepaalde rechten te geven Dit moet mogelijk zijn met de thttpd server.
Jozef
installeren van de busybox m.b.v. ipkg (zie hiervoor verder in het forum en
# ASUS WL-Series ipkg package system Tutorial , http://www.macsat.com/ipkg.php )
ipkg install busybox
Installing busybox (1.00-10) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/busybox_1.00-10_mipsel.ipk
Installing busybox-links (1.00-10) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/busybox-links_1.00-10_mipsel.ipk
..
..
ipkg list_installed|grep busybox
busybox-base - 1.00-10 - A userland replacement for embedded systems.
[admin@myrouter:/etc]$ /A/busybox
BusyBox v1.00-pre5 (2004.01.09-12:23+0000) multi-call binary
Usage: busybox [function] [arguments]...
or: [function] [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use, and BusyBox
will act like whatever it was invoked as.
Currently defined functions:
[, addgroup, adduser, adjtimex, ar, arping, ash, awk, basename, bunzip2, busybox,
bzcat, cal, cat, chgrp, chmod, chown, chroot, chvt, clear, cmp, cp, cpio, crond,
crontab, cut, date, dc, dd, deallocvt, delgroup, deluser, devfsd, df, dirname, dmesg,
dos2unix, du, echo, egrep, env, expr, false, fdflush, fdformat, fdisk, fgrep, find,
fold, free, freeramdisk, fsck.minix, ftpget, ftpput, getopt, getty, grep, gunzip,
gzip, halt, head, hexdump, hostid, hostname, httpd, hush, hwclock, id, ifconfig,
ifdown, ifup, inetd, init, insmod, install, ip, ipcalc, iplink, iproute, iptunnel,
kill, killall, lash, last, length, linuxrc, ln, logger, login, logname, losetup,
ls, lsmod, makedevs, md5sum, mesg, mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp,
modprobe, more, mount, msh, mt, mv, nameif, nc, netstat, nslookup, od, openvt, passwd,
patch, pidof, pipe_progress, pivot_root, poweroff, printf, ps, pwd, rdate, readlink,
realpath, reboot, renice, reset, rm, rmdir, rmmod, route, rx, sed, setkeycodes,
sh, sha1sum, sleep, sort, strings, stty, su, sulogin, swapoff, swapon, sync, tail,
tar, tee, telnet, telnetd, test, tftp, time, top, touch, tr, traceroute, true, tty,
uname, uncompress, uniq, unix2dos, unzip, uptime, usleep, uudecode, uuencode, vconfig,
vi, vlock, watch, watchdog, wc, wget, which, who, whoami, xargs, yes, zcat
Zoals je ziet zit adduser erbij, dus dan wordt het dus zoiets als:
./busybox addgroup <usergroep>
./busybox adduser <usernaam>