Yes you can restrict shell access.
If you want to do it manually to learn the tricks its much better.
Kaysa sa mga OS na meron nang ganung features. Pero madali lang
Ung concept, pero dapat maingat ka. Kse Security concerns mo na
Rin if u want to limit commands.

> Any ideas on .bashrc?? or .bash_profile? or ?

Kasama ito sa settings mo, make ur own bin directory
Tanggalin mo sa .bashrc, .bash_profile, .profile, etc yan.
Mag lagay ka lang nang isang directory ex.

/home/louie/bin

Add mo ito sa .profile mo for $PATH tapos copy mo ung mga gusto mong
Commands lang sa /bin/ papuntang $home/louie/bin mo.

Test mo kung bash ka type mo sa keyboard ung tab two times para makita ung
mga commands.

Then if you want to make it much secure na nde nila ma access yung
/bin mo then chmod 700 /bin para root lang may hawak nang ibang commands,
make it sure na I filter mo maigi ung mga commands kse most applications in
unix e hinahanap ung mga para bang system commands to run properly. Its big
work pero you're gaining knowledge on that part. Hehe :)

Ung ps,netstat,ls,etc na command pede mo din I restrict nasa /proc lang yan,
pero that's a different story ;) hehe.

Also check /sbin/ /usr/sbin, etc lahat nang mga bin :)

This is my opinion abt secure shell :)
Antayin mo na din ung iba. :)

Thanks,
Louie



-----Original Message-----
From: Marc Chan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 05, 2003 3:41 PM
To: [EMAIL PROTECTED]
Subject: [plug] Restrict command in shell


Dear All,

Can I restrict my users with shell accounts to access only specific
commands?

example : user 1 can only access cp, rm, mv while
               user 2 can access cp, rm, mv, pico and wget
and all other command are disabled.

Any ideas on .bashrc?? or .bash_profile? or ?

Thank you very much,
Marc


--
Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED]
(#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph . To leave, go to
http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to