Questions tagged [posix]

POSIX (Portable Operating System Interface) is a set of standards for Unix-like operating systems, defining programming APIs, command line shells and common utilities.

45 questions
1
vote
1 answer

(initscripts) Execute a command, if the command does not complete in 10 seconds, run another

On (Debian) Linux I want to: Execute a command. If the command doesn't complete in 10 seconds, kill it and try another command. The use-case is: I have a daemon service which I would like to shut down gracefully. It can be stopped by sending a TCP…
bryan_basho
  • 91
  • 1
  • 5
1
vote
1 answer

Including partial scripts as part of a POSIX shell

I can't get a straight answer ANYWHERE about this question. In BASH, you can include a 'partial' script and execute it inline in the rest of your bash script with the following syntax: #!/usr/bin/bash . ~/my-partial-include-preamble-script.in.sh #…
djhaskin987
  • 388
  • 4
  • 14
1
vote
1 answer

ngrep Headers/Frames

Using the -x flag with ngrep causes the data portion of packets to be displayed in hex. Is there a way to also display the frames/headers as well?
Jonathan
  • 301
  • 2
  • 8
1
vote
2 answers

time format "ls" in MacOSX

I have a Apple server, and when I use ls -alFt output shows: "drwxrwxrwx 267 admin www 9078 Mar 31 2010 3/" and "drwxrwxrwx 483 admin www 16422 Jul 9 09:58 26/" what is the real time? I'm looking for older folders to move it,…
user57882
1
vote
1 answer

how to disable/remove nfs4 acl, and back to original linux access control?

I have add nfs4 acl for a directory in nfs client, but can not use "chown/chgrp" after add nfs4 acl, now I want to give up nfs4 acl, and back to original linux simple access control, how to ??? In standard linux acl, we can use setfacl -bn xxx file…
Levin
  • 121
  • 4
1
vote
1 answer

How to use a POSIX-compliant volume in Azure Container Instances

Some Docker images like postgres and gitlab/gitlab-ce require the ability to set permissions and ownerships on files and directories, however this does not appear to be supported on Azure Container Instances (see here, here, here) due to the file…
1
vote
1 answer

How to reliably & portably serialize binary information into POSIX shell

Problem context I am trying to implement a job orchestrator whose agent/worker programs, connect to machines via an SSH session/shell. I would like to transfer (potentially binary) files to these agents (which could be needed for any sort of…
Daniel Gray
  • 147
  • 1
  • 1
  • 5
1
vote
1 answer

Using Samba as an AD domain member with consistent automatically generated POSIX attributes across Linux members

I am trying to join multiple Linux devices to a Windows Active Directory Domain with both Domain logon and Samba file sharing functionality. I am trying to avoid manually adding POSIX attributes to AD users and groups here. Although seeming simple…
James Hopwood
  • 37
  • 1
  • 6
1
vote
1 answer

Does Varnish support unix domain socket files?

Does varnish support unix socket files? I'd like to accelerate my website by adding a varnish reverse proxy (HTTP accelerator/cache) before my web server. My web server's virtual host is currently configured to listen for connections on a…
Michael Altfield
  • 739
  • 2
  • 8
  • 23
0
votes
1 answer

Linux daemon accounts and kerberos

there is something I can't grasp about security in Linux. I have a piece of software, it's running as a service on user X, it needs RW for directory Y owned by user Z and group C (both which is in LDAP) (this is running on a separate VM - and vm is…
ColdIce
  • 3
  • 2
0
votes
1 answer

RHEL 6 - SSSD ldap_id_mapping = False

Looking for your help on scenario below Scenario - My authentication happens using 2 domains (we have trust between domain 1 and 2). We migrated the servers from domain1 to domain2. Domain 1 has POSIX enabled and not Domain 2 Do I have an option to…
0
votes
1 answer

user not being associated with ldap group membership by id

I have an existing set of Centos 5.4 servers that restrict login based on being a uniquemember of an ldap group vizusers. The users can be a direct uniquemember of the group or be a member of a group that is a uniquemember of vizusers. I am trying…
0
votes
3 answers

Monitoring and terminating a hanged process in Linux

I'm writing a script that runs many simultaneous processes that run the "dig" command. Once in a while (relatively rare, but happens in every run since I run dig many times) the dig command hangs with 0% CPU. Therefore, my script never…
Yoav
0
votes
1 answer

Does tar create point-in-time snapshots?

I know that tar can be used to create a backup. However I wonder if the operation creates point-in-time backups or not. Basically I wonder if it grants consistency if the directory and files are being added / modified / deleted in the meantime.
collimarco
  • 264
  • 2
  • 3
  • 10
-2
votes
1 answer

Why an operating system would like to be POSIX compliant?

What's the big deal around POSIX and how it interferes in the overall usage of an Operating System?
Ricardo Silva
  • 205
  • 2
  • 7
1 2
3