LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-06-2008, 03:10 PM   #1
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Rep: Reputation: 30
Question Debian permissions question


I have created a few scripts and assign them to a group called scripters, I added my user Prime to the group scripters and assigned 750 permission to the scripts, so only root and people belonging to group scripters can use them. Here is the situation, if I get out of X and login as Prime in a terminal (not using X), I can execute the scripts as expected. Now when I'm using X and I try to run the scripts with the same user Prime I get permission denied. I usually never deal with authorizations beyond the basic level, and I can't figure out what is going on here.

these is the output of ls -la

drwxr-xr-x 2 root scripters 4096 2008-09-06 12:44 .
drwxr-xr-x 9 root root 4096 2008-09-06 12:27 ..
-rwxrwx--- 1 root scripters 36 2008-09-06 12:44 con3
-rwxrwx--- 1 root scripters 38 2008-09-06 12:44 con6

Prime@roedor:/home/scripts$ groups Prime
Prime : Prime vboxusers usbfs scripters

Prime@roedor:/home/scripts$ ./con3
bash: ./con3: Permission denied
Prime@roedor:/home/scripts$

Thanks for your help!
 
Old 09-06-2008, 05:42 PM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Have you logged out of X and logged back in after making the group changes?
 
Old 09-06-2008, 05:50 PM   #3
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
If logging off and back on doesn't help then you can see if the permission denied is coming from trying to execute the script or if it is coming from one of the commands in the script. Do this by invoking bash -x <script name>
Code:
bash -x ./con3
The -x parameter to bash will display each command in the script just before it is executed. That way you can determine if one of the commands in the script is causing the permission denied problem.

Last edited by stress_junkie; 09-06-2008 at 05:51 PM.
 
Old 09-06-2008, 06:37 PM   #4
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Original Poster
Rep: Reputation: 30
Oh well, what can I say, you guys were right, I logged off and back on and now it is working.
I don't get it, what is the reason behind having to log off? That reminds me my old days with microsoft......
 
Old 09-06-2008, 09:06 PM   #5
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Your login process gains its characteristics only when you log on. When you change your account profile the changes only take effect with new log in processes. When you open a terminal window in the X desktop the terminal window is a new log in process that takes on the new characteristics of your account profile but your original X session hasn't changed.
 
Old 09-06-2008, 10:38 PM   #6
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Original Poster
Rep: Reputation: 30
Oh well, what can I say, you guys were right, I logged off and back on and now it is working.
I don't get it, what is the reason behind having to log off? That reminds me my old days with microsoft......
 
Old 09-06-2008, 10:39 PM   #7
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Original Poster
Rep: Reputation: 30
sorry about that extra posting, thanks for all your help
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Secure permissions for Debian web server josno Linux - Server 10 03-22-2008 01:06 PM
Debian 3.1 + ISPConfig + bBlog permissions problem markjones Debian 0 05-22-2006 06:04 AM
Bad Debian Default Permissions LinuxGeek Debian 4 03-09-2005 08:48 AM
Heavy problems with mount and permissions in Debian bureado Linux - General 1 12-07-2003 11:04 PM
Debian permissions? Allen614 Linux - Software 8 01-12-2003 01:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:54 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