LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-06-2008, 11:28 AM   #1
squirrel001
Member
 
Registered: Feb 2006
Posts: 51

Rep: Reputation: 15
permission to a specific user


Hello,
I want to give executable permission to a single specific user. Is it possible to do that. thanks.
 
Old 02-06-2008, 12:05 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
Add the username to /etc/sudoers file along with the commands the user should be allowed to use. Then all the user has to do is give the command: sudo <commandname> [command options].
 
Old 02-06-2008, 12:05 PM   #3
mahmoud
Member
 
Registered: Apr 2006
Location: UK
Distribution: Mandriva, Debain, Redhat, Fedora, Ubuntu, FreeBSD
Posts: 269

Rep: Reputation: 30
use sudo and you can also edit the permissions in the /etc/password file not advisable

Last edited by mahmoud; 02-06-2008 at 12:10 PM.
 
Old 02-06-2008, 09:57 PM   #4
roy_lt_69
Member
 
Registered: Aug 2006
Location: Vancouver, BC, Canada
Distribution: Slackware, Bodhi, Mint-xfce
Posts: 182

Rep: Reputation: 21
Do you want to allow one user to be able to execute all commands (like root)?
Or to execute one command or file?

You could create a new group and add that user as the only member, then give that group executable permission to whatever file you want to execute.
 
Old 02-07-2008, 08:14 PM   #5
squirrel001
Member
 
Registered: Feb 2006
Posts: 51

Original Poster
Rep: Reputation: 15
i am not the root. i can give permission to my group or others. but i want to give one member of a group to give view and execution permission. is it possible?
 
Old 02-07-2008, 08:42 PM   #6
squirrel001
Member
 
Registered: Feb 2006
Posts: 51

Original Poster
Rep: Reputation: 15
little bit addition: i want to give execution permission of a file to a specific user.
 
Old 02-07-2008, 08:48 PM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Can't you just set the ownership of that file to the specific user and only let that user execute that file


ie
chown username filename
chmod u+x,g-x,o-x filename

or even

chown username filename
chmod 700 filename

or something like that

Last edited by billymayday; 02-07-2008 at 08:50 PM.
 
Old 02-07-2008, 08:49 PM   #8
squirrel001
Member
 
Registered: Feb 2006
Posts: 51

Original Poster
Rep: Reputation: 15
thanks, i'll try that.
 
Old 02-07-2008, 09:10 PM   #9
SlowCoder
Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Fedora (Desktop), CentOS (Server), Knoppix (Diags)
Posts: 934

Rep: Reputation: 38
Quote:
Originally Posted by billymayday View Post
chown username filename
chmod 700 filename
Since he's not root, wouldn't this permanently revoke HIS permissions to that file at all? He'd be changing ownership, AND changing access permissions for Group and Other to 0.
 
  


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
no permission to access shares on a samba server from a SPECIFIC only, winXP machine nass Linux - Server 3 05-17-2007 09:20 PM
no permission to access shares on a samba server from a SPECIFIC only, winXP machine nass Linux - Server 0 05-17-2007 03:50 PM
limit specific proces to a specific user Tux-Slack Linux - Software 3 02-24-2007 12:38 AM
rm specific user files Longinus Linux - Newbie 1 04-27-2004 02:09 PM
user specific file access permission synna Linux - Security 3 01-14-2004 12:53 AM


All times are GMT -5. The time now is 11:39 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration