HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- .Xauthority permissions
Operating System - HP-UX
1825569
Members
3197
Online
109682
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2010 07:25 AM
06-09-2010 07:25 AM
.Xauthority permissions
Hi Admins,
Is there any way to set a default permission of 644 to .Xauthority file when it created?
I have a Xppplication (with suid ) which is owned by user A and when user B try to run it. It fails with explicit kill or server shutdown.
Problem is that .Xauthority file in the home directory of user B is not readable by user A.
Is there any solution for this problem rather that changing the permission of .Xauthority file manually?
Thanks In advance.
Sreeram
Is there any way to set a default permission of 644 to .Xauthority file when it created?
I have a Xppplication (with suid ) which is owned by user A and when user B try to run it. It fails with explicit kill or server shutdown.
Problem is that .Xauthority file in the home directory of user B is not readable by user A.
Is there any solution for this problem rather that changing the permission of .Xauthority file manually?
Thanks In advance.
Sreeram
Sreeram N
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2010 09:36 AM
06-09-2010 09:36 AM
Re: .Xauthority permissions
Can you try "xhost +"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2010 10:57 AM
06-09-2010 10:57 AM
Re: .Xauthority permissions
I am able to run xclock when I logged in as user B. Problem here is. When I logged in as user B and try to run a program owned by user A, for the time being user B gets the privilege of user A (because set uid which is required to run the program) it is unable to read the .Xauthority file under user Bâ s home directory.
I am looking for a solution how to give a default permission of 644 to .Xauthority file each time it created.
I am looking for a solution how to give a default permission of 644 to .Xauthority file each time it created.
Sreeram N
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2010 11:19 AM
06-09-2010 11:19 AM
Re: .Xauthority permissions
Setting 644 permissions to .Xauthority would completely ruin the security it provides.
Instead, take a look at this script I found by Googling a little:
http://www.ilive4unix.net/doku.php/code/sh/xsudo
NOTE: the script apparently has a typo:
xauth merge ${XAUTHEXPORT}|> 2>/dev/dull # import the magic cookie
/dev/dull should probably be /dev/null.
MK
Instead, take a look at this script I found by Googling a little:
http://www.ilive4unix.net/doku.php/code/sh/xsudo
NOTE: the script apparently has a typo:
xauth merge ${XAUTHEXPORT}|> 2>/dev/dull # import the magic cookie
/dev/dull should probably be /dev/null.
MK
MK
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP