LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 10: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, 11:05 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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, 11:05 AM   #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 11:10 AM.
 
Old 02-06-2008, 08:57 PM   #4
roy_lt_69
Member
 
Registered: Aug 2006
Location: Vancouver, BC, Canada
Distribution: Slackware, Mint, Debian
Posts: 238

Rep: Reputation: 29
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, 07: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, 07: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, 07: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 07:50 PM.
 
Old 02-07-2008, 07:49 PM   #8
squirrel001
Member
 
Registered: Feb 2006
Posts: 51

Original Poster
Rep: Reputation: 15
thanks, i'll try that.
 
Old 02-07-2008, 08:10 PM   #9
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:49 AM.

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
Open Source Consulting | Domain Registration