LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-30-2008, 01:33 PM   #1
davetaylorjr
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Rep: Reputation: 0
Expanding permissions for fuser beyond root to all users on RHEL 5.1


First, I am a newbie to Linux and a newbie to this forum, so all suggestions will be gratefully appreciated.

I'm using the RHEL 5.1 fuser command in an application software package to determine if the process that is sending a print job to the &HOLD& file has completed or not by shelling out and executing the following command:

CMD = \SH -c' /sbin/fuser "ANPHOLD/\:ID:\"'\

where ANPHOLD is the folder name and the var ID contains the file name.

If a process is still connected to the ID file, then is the file has not yet been written completely.

This command works correctly from root using Terminal from the RHEL desktop.

It does not work at all using a telnet session from any other desktop launched by a user other than root.

The permissions on fuser were originally:

Owner root
Access Read and Write

Group root
Access Read-only

Others
Access Read-only

[x] Allow executing file as a program

I changed the permissions on fuser to:

Owner uv
Access Read and Write

Group (I tried) Admin (and) Users
Access Read-only

Others
Access Read-only

[x] Allow executing file as a program

I still get the same results - ie it only works from root.

I need to be able to execute fuser from any telnet login and from any user.

Do I need to reboot RHEL afte changing the permissions on fuser to activate the new permissions?

Do I need to add each user to the root group and, if so, how do I do that?

Other suggestions?

Thank you in advance for your assistance,

Dave
 
Old 12-30-2008, 04:06 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,863

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
Quote:
Originally Posted by davetaylorjr View Post
executing the following command:

CMD = \SH -c' /sbin/fuser "ANPHOLD/\:ID:\"'\

where ANPHOLD is the folder name and the var ID contains the file name.


This command works correctly from root using Terminal from the RHEL desktop.

It does not work at all using a telnet session from any other desktop launched by a user other than root.

The permissions on fuser were originally:

Owner root
Access Read and Write


[x] Allow executing file as a program

I changed the permissions on fuser to:

Owner uv
Access Read and Write

[x] Allow executing file as a program

I still get the same results - ie it only works from root.

What error messages do you get in the two different test cases?

Also use the which command to see if fuser is on uv's PATH:

which fuser

----------------------
Steve Stites

Last edited by jailbait; 12-30-2008 at 04:08 PM.
 
Old 12-30-2008, 07:59 PM   #3
davetaylorjr
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Q. What error messages do you get in the two different test cases?

A. I get the name of the process attached to the file when I log in as root, which I expect to get. I do not get the name of the process attached to the file when I log in as any user other than root.

Q. Also use the which command to see if fuser is on uv's PATH:

A. fuser is not in uv's path, but the entire path from root to fuser is in the command "/sbin/fuser" and uv's path is "/usr/ibm/uv" and I am logged into "/usr/ibm/uv" when I log in as root and when I am logged in as uv.

Q. which fuser

A. I am only familiar with the fuser at "/sbin/fuser"

Steve, thank you for your assistance.
 
Old 12-31-2008, 08:06 PM   #4
davetaylorjr
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Problem solved:

I had installed a new application account (folder),from which I was running this application, beneath the parent folder and I failed to reopen the permissions on the parent folder and click the "Apply Permissions to enclosed files" button, which meant that the new application account folder had not inherited the permissions from the parent folder.

One more step to add to the InstallationReadMe document.

Thank you again for your help.

Happy New Year

Dave
 
  


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
Devices only working as users with root permissions in Slackware 12.2 kbdunn Linux - Hardware 5 12-14-2008 02:40 PM
pmount problem: no write permissions for non root users akirashinigami Linux - Laptop and Netbook 4 07-13-2008 07:24 PM
Sarge: how to have ALSA right permissions for users and root ? Xeratul Debian 1 12-24-2006 04:41 PM
how do I increase Permissions for users other than root? LinuxPadawan Linux - Security 2 04-05-2005 04:15 PM
m9.2 all users have root permissions !? stormNC Mandriva 3 05-03-2004 09:57 PM

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

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