Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

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


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

Old 07-12-2009, 09:37 PM   #2
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, 09:42 PM   #3
LQ 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 09:44 PM.
Old 07-12-2009, 10:28 PM   #4
LQ Newbie
Registered: Dec 2008
Distribution: Ubuntu 9.04
Posts: 15

Rep: Reputation: 1
sounds like a very interesting question, how about change
just an shallow idea havn't try yet...
Old 07-13-2009, 12:48 PM   #5
Registered: Feb 2007
Posts: 367

Rep: Reputation: 134Reputation: 134
limited shell might be what you're looking for:
Old 07-13-2009, 03:09 PM   #6
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-14-2009, 12:47 AM   #7
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

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


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 01:01 PM
Change account passwd in one command christopher_c Linux - Newbie 11 10-19-2007 01:26 AM
How do you create a user account from command line??? bossdog22 Ubuntu 3 04-18-2006 02: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 11:02 AM
block email functions on single account gbarny Solaris / OpenSolaris 2 11-18-2004 02:30 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:05 AM.

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