Ну допустим... но я с ним не всё понимаю
по умолчанию в файле /etc/passwd для юзеров стоит оболочка
Код:
name:x:500:500:Linux User,,,:/home/name:/bin/sh
что бы поменять его на busybox делаю команду
Код:
chsh -s /ffp/bin/busybox name
После этого оболочка у name в /etc/passwd меняется на бази,но когда я пытаюсь зайти по этим юзером, putty выдаёт вот это и закрывается:
Цитата:
BusyBox v1.12.1 (2008-09-29 20:38:04 CEST) multi-call binary
Copyright (C) 1998-2008 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.
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:
[, [[, adduser, adjtimex, arp, arping, ash, awk, basename, bbconfig,
bunzip2, bzcat, bzip2, cal, cat, catv, chgrp, chmod, chown, chroot,
chrt, chvt, cksum, clear, cmp, comm, cp, crond, crontab, cryptpw,
cut, date, dc, dd, deallocvt, deluser, depmod, df, dirname, dmesg,
dos2unix, du, echo, ed, egrep, eject, env, ether-wake, expand,
expr, fakeidentd, false, fdisk, fgrep, find, fold, free, freeramdisk,
fsck.minix, ftpget, ftpput, fuser, getopt, getty, grep, gunzip,
gzip, halt, hdparm, head, hexdump, hostid, hostname, hwclock,
id, ifconfig, ifdown, ifenslave, ifup, inetd, init, insmod, install,
ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, iproute, iprule, iptunnel,
kill, killall, killall5, klogd, last, length, ln, logger, logname,
logread, losetup, ls, lsmod, lzmacat, md5sum, mdev, mesg, microcom,
mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp, modprobe, more,
mount, mountpoint, mv, nameif, nc, netstat, nice, nmeter, nohup,
nslookup, od, openvt, pgrep, pidof, ping, pivot_root, pkill, poweroff,
printenv, printf, ps, pwd, raidautorun, rdate, rdev, readahead,
readlink, readprofile, realpath, reboot, renice, reset, resize,
rm, rmdir, rmmod, route, run-parts, runlevel, rx, script, sed,
seq, setconsole, setlogcons, setsid, sh, sha1sum, slattach, sleep,
sort, split, stat, strings, stty, su, sulogin, sum, swapoff, swapon,
switch_root, sync, sysctl, syslogd, tac, tail, tar, taskset, tee,
telnet, telnetd, test, time, top, touch, tr, traceroute, true,
tty, ttysize, udhcpc, umount, uname, uncompress, unexpand, uniq,
unix2dos, unlzma, unzip, uptime, usleep, uudecode, uuencode, vconfig,
vi, vlock, watch, watchdog, wc, wget, which, who, whoami, xargs,
yes, zcat, zcip
если использовать то что стоит по умолчанию /bin/sh, то тогда какой синтаксис у этой оболоки???... любые команды не воспринимаются вот так выгдядит:
Цитата:
BusyBox v1.00-pre1 (2008.09.02-11:43+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
ls -l
pwd
cd /
ls -l