- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: setacl not working as expected.
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
12-12-2005 02:41 AM
12-12-2005 02:41 AM
setacl not working as expected.
They use setfacl on Solaris, I've used setacl on HP-UX.
We're removed access to /dev/tcp and /dev/udp for a group called "hcl".
Everything looks cool but doesn't have the desired affect.
$ id
uid=98512(username) gid=106(hcl) groups=20(users)
$ groups
hcl users
$ getacl /dev/tcp
# file: /dev/tcp
# owner: root
# group: root
user::rw-
group::rw-
group:hcl:---
class:rw-
other:rw-
$ telnet 10.216.34.12 2222
Trying...
Connected to 10.216.34.12.domain.com.
Escape character is '^]'.
SSH-1.99-OpenSSH_3.8p1
CLOSE
Protocol mismatch.
Connection closed by foreign host.
Here's how it works on Solaris: (group is called noaccess instead of hcl.
$ id
uid=69(username) gid=0(root)
$ groups
root noaccess
$ getfacl /dev/tcp
# file: /dev/tcp
# owner: root
# group: sys
user::rw-
group::rw- #effective:rw-
group:noaccess:--- #effective:---
mask:rw-
other:rw-
$ getfacl /dev/udp
# file: /dev/udp
# owner: root
# group: sys
user::rw-
group::rw- #effective:rw-
group:noaccess:--- #effective:---
mask:rw-
other:rw-
$ telnet 10.216.34.12
<--- NOTE THAT AT THIS POINT, username CAN'T EVEN READ /dev/udp SO NAME LOOKUP FAILS
10.216.34.12: Unknown host
$ getfacl /dev/udp
# file: /dev/udp
# owner: root
# group: sys
user::rw-
group::rw- #effective:rw-
mask:rw-
other:rw-
$ telnet staupif1 2222 <--- AT THIS POINT, /dev/udp IS READABLE BUT /dev/tcp IS NOT
Trying 10.216.34.12...
telnet: socket: Permission denied
Any ideas why we're not seeing the expected results?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2005 07:53 AM
12-12-2005 07:53 AM
Re: setacl not working as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2005 07:55 AM
12-12-2005 07:55 AM
Re: setacl not working as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2005 07:59 AM
12-12-2005 07:59 AM
Re: setacl not working as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2005 08:02 AM
12-12-2005 08:02 AM
Re: setacl not working as expected.
I apologize for the broken up responses...I'm having some issues with the page refreshing and not going through.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2005 02:10 AM
12-20-2005 02:10 AM
Re: setacl not working as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2006 10:01 PM
01-04-2006 10:01 PM
Re: setacl not working as expected.
Still no idea why it's not working. Does the filesystem need to be explicitly set to allow ACL's? I've found another posting that mentioned trying "mount -o remount,acl /" But I can't find anything to suggest 'acl' is a valid mount switch.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2006 10:51 PM
01-04-2006 10:51 PM
Re: setacl not working as expected.
on HP-UX you could even remove these device files whithout having the desired effect. They are simply not required for calling socket(2) or bind(2). So the the approach is not really promising.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2006 01:17 AM
01-05-2006 01:17 AM
Re: setacl not working as expected.
thx,
bl.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2006 02:46 AM
01-05-2006 02:46 AM
Re: setacl not working as expected.
# bdf /
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 212992 138744 73808 65% /
# fstyp /dev/vg00/lvol3
vxfs
I've now tried amending the ACL for /usr/bin/telnet. This has meant I can restrict access to the executable, and it seems to work in practice. Not very pretty, but it works. Guess I can do the same with the SSH exe.