LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-12-2009, 08:11 PM   #1
blong4life
Member
 
Registered: Jun 2006
Distribution: Fedora Core 8, RHEL 4, CentOS 5
Posts: 44

Rep: Reputation: 15
How to block a command from an account?


Hello,

Is it possible to block 1 function from 1 account, such as "wget" from an account so that a user can't use it.

Thanks,
Brandon
 
Old 07-12-2009, 08:37 PM   #2
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
More broadly, what's your real goal? Blocking wget would do nothing, for example; curl or any browser could all do the same thing.
 
Old 07-12-2009, 08:42 PM   #3
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
The most convenient solution would be to prevent users from installing it in the first place. Still, if they work on it, they could download the source code and install it inside their home directory. Unless you also block direct access to the internet. I would also recommend that you read man sudoers.
Other solution: monitor internet usage and pull their ears when you see suspicious amounts of data being transferred.

Last edited by jay73; 07-12-2009 at 08:44 PM.
 
Old 07-12-2009, 09:28 PM   #4
JosephMu
LQ Newbie
 
Registered: Dec 2008
Distribution: Ubuntu 9.04
Posts: 15

Rep: Reputation: 1
sounds like a very interesting question, how about change
.bashrc
and
chmod
and
chgrp
and
chown
????
just an shallow idea havn't try yet...
 
Old 07-13-2009, 11:48 AM   #5
gapan
Member
 
Registered: Feb 2007
Posts: 343

Rep: Reputation: 105Reputation: 105
limited shell might be what you're looking for: http://lshell.ghantoos.org/
 
Old 07-13-2009, 02:09 PM   #6
blong4life
Member
 
Registered: Jun 2006
Distribution: Fedora Core 8, RHEL 4, CentOS 5
Posts: 44

Original Poster
Rep: Reputation: 15
Ok thanks for the advice all.
 
Old 07-13-2009, 11:47 PM   #7
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,269

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
Look at ACLs, although as mentioned, there is always more than one way to do it... ie blocking wget will not solve your problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I use crontab command with sys account? xuebof Linux - Server 1 03-04-2008 12:01 PM
Change account passwd in one command christopher_c Linux - Newbie 11 10-19-2007 12:26 AM
How do you create a user account from command line??? bossdog22 Ubuntu 3 04-18-2006 01:06 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM
block email functions on single account gbarny Solaris / OpenSolaris 2 11-18-2004 01:30 AM


All times are GMT -5. The time now is 09:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration