GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Permission Denied on Write Command
Operating System - HP-UX
1849322
Members
7056
Online
104042
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
Forums
Discussions
back
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
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
02-01-2008 06:48 AM
02-01-2008 06:48 AM
Permission Denied on Write Command
I am trying to allow our user access to the write command. I created a C wrapper for the write command and did a chmod of 6555 and chown root:tty on the compiled code. I am able to run it as root without a problem, but the users cannot. They get a Permission Denied" error. They are able to run the write command by itself and the syntax is returned. Here is the command they are running:
write username pts/tb < testfile
I run the exact same process for the wall command and the wall command works fine for the users. I appreciate any help you can provide.
Tommy
write username pts/tb < testfile
I run the exact same process for the wall command and the wall command works fine for the users. I appreciate any help you can provide.
Tommy
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2008 09:27 AM
02-01-2008 09:27 AM
Re: Permission Denied on Write Command
Not sure the problem is your code...
I tried copying the existing "write" to "mywrite" and played w/ the setuid / gid and sticky bits....got the same result you did.
I did note however that:
a) sudo write .... works ok,
b) issuing "mesg y" in profile opens terminal so anybody can write to that terminal...which may be sufficient for your needs (or not)
I tried copying the existing "write" to "mywrite" and played w/ the setuid / gid and sticky bits....got the same result you did.
I did note however that:
a) sudo write .... works ok,
b) issuing "mesg y" in profile opens terminal so anybody can write to that terminal...which may be sufficient for your needs (or not)
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
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP