LinuxQuestions.org
Visit Jeremy's Blog.
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 07-11-2017, 12:51 AM   #1
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,732
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Question Unable to give permission through sudoers to a script accessing /dev/tty13


Here abc is the username and ak.sh is the file which I wish to get all the permissions.
Have added the following line on the top of sudoers.tmp which I opened like sudo visudo:

Code:
abc ALL=NOPASSWD: /home/abc/ak.sh
ak.sh contains:

Code:
#!/bin/bash 
sudo cat /dev/tty13
When I run the script file, it asks me for password.

Last edited by Aquarius_Girl; 07-11-2017 at 01:59 AM.
 
Old 07-11-2017, 03:05 AM   #2
cse_200509
LQ Newbie
 
Registered: Oct 2007
Posts: 18

Rep: Reputation: 30
Unable to give permission through sudoers to a script accessing /dev/tty13

this sometimes may be because of sequence of the line you are defining rules in sudoers list. better you check manual for this or google it.
 
  


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
[SOLVED] sudoers specific permission RaptorX Slackware 14 07-21-2009 01:56 AM
sudoers - how to give access to certain directories? trey85stang Linux - Enterprise 4 05-23-2009 02:30 PM
using sudoers files to give privilege to users dolceinter1 Linux - Server 1 11-04-2008 02:37 PM
Permission Denied for script accessing text file lobo1 Linux - General 2 06-28-2005 12:46 PM
Why I cannot change permission on /etc/sudoers? mikeshn Linux - Software 1 01-06-2005 11:26 AM

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

All times are GMT -5. The time now is 09:08 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
Open Source Consulting | Domain Registration