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.

Filter by
Sorted by
Tagged with
-2 votes
1 answer
42 views

Why an operating system would like to be POSIX compliant? [closed]

What's the big deal around POSIX and how it interferes in the overall usage of an Operating System?
user avatar
1 vote
1 answer
331 views

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 ?...
user avatar
  • 121
1 vote
1 answer
101 views

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 ...
user avatar
1 vote
1 answer
238 views

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 ...
user avatar
0 votes
1 answer
706 views

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 ...
user avatar
0 votes
1 answer
31 views

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 ...
user avatar
1 vote
1 answer
659 views

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 ...
user avatar
1 vote
1 answer
434 views

Posix attributes not returned when using ldapsearch against Active Directory

In our organization, we have ActiveDirectory set up with Identity Management for Unix (IDMU). When I look in ADUC on the Attribute Editor tab, I can see the posix attributes on my account (eg. ...
user avatar
0 votes
1 answer
137 views

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 ...
user avatar
3 votes
1 answer
2k views

How to have multiple users access to chmod() the same file?

I have a system where multiple users are running an application that chmod the same file. I've tried using setacl to add both users as user owners of the file to do this, but it doesn't work. The ...
user avatar
2 votes
1 answer
726 views

Which special characters work in sieve regex?

I have the Roundcube Webmail v. 1.3.1 mail client with managesieve v. 8.7 extension and want to add some regex driven actions for my mail and the only documentation I found on the regex flavour is ...
user avatar
  • 127
1 vote
1 answer
1k views

Using posix attributes instead of normal LDAP?

Due to the way a software we use interacts with Unix, when I am setting up a certain application to interact with LDAP I need to use Posix attributes instead of normal LDAP attributes. So far all I ...
user avatar
  • 111
2 votes
2 answers
8k views

syslog direct to AWS cloudwatch?

Is there a way to push POSIX syslog records directly to AWS cloudwatch? I know Cloudwatch can be rigged to look at the /var/log/messages files and similar. But is there a way -- a sylog.conf(5) ...
user avatar
  • 233
2 votes
2 answers
68 views

Is there an effective way to test whether a script only uses POSIX features?

If I wanted to be sure that a script I have written is as portable as possible and only uses POSIX features and no, say, bash features, is there an explicit way to check this? Obviously, I could try ...
user avatar
  • 273
0 votes
1 answer
701 views

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 ...
user avatar
1 vote
1 answer
193 views

Why is posix.lstat taking such a long time? (duplicity backing up of 9p virtio filesystem)

I have a filesystem mounted with 9p virtio through KVM, and am backing it up using duplicity to a remote SSH server. I' m trying to speed up the backup process, which seems unreasonably slow to me. ...
user avatar
  • 41
1 vote
0 answers
35 views

sftp permissions limited to primary group after update? [duplicate]

My CentOS7 server runs sftp through openssh. Users are chrooted to a dir with subdirs that are owned by another user, but sftp users are group members through their primary or secondary groups with ...
user avatar
0 votes
1 answer
403 views

user not being associated with ldap group membership by id <username>

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 ...
user avatar
3 votes
1 answer
3k views

How can I find all files in a directory with illegal characters in the file name?

Here is what I prepared and where I got stuck: find / \! -name "*[:alnum:]*" -type f -ls > ~/Desktop/files_not-allowed-char.txt I actually want to list all files which include one of these ...
user avatar
2 votes
2 answers
2k views

Scheduling a job to run every 23 minutes

There are cases when I need to run a scheduled job in more complex way that Cron is able to provide. Say, to schedule a job to run every 23 or 65 minutes. In the latter case it can be worked around ...
user avatar
1 vote
3 answers
3k views

Linux Authentication with Windows 2012R2 Server (Deprecated IMU role)

I've been looking around the web trying to find a way to authenticate users on Linux with a Domain User account on a Windows 2012R2 Server. The way I've done this in the past is using the "Identity ...
user avatar
  • 3,434
2 votes
1 answer
1k views

Postfix header_checks syntax (POSIX - Perl)

I am using header_checks in Postfix to rewrite my headers (for emails sent by Outlook through my server). Here is the part of the header I am trying to change : Received: from Raphasus (****.abo....
user avatar
2 votes
3 answers
17k views

Cant install php-posix on CentOS 6

I'm trying to install php-posix on CentOS 6, with no luck: $ yum install php-posix Getting the following error: Loaded plugins: downloadonly, fastestmirror Loading mirror speeds from cached ...
user avatar
  • 281
1 vote
1 answer
42 views

(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 ...
user avatar
2 votes
0 answers
104 views

find nouser equivalent for POSIX ACLs

On a Linux system it is possible to find files that are owned by a uid that does not have a user name assigned with "find -nouser". I have been looking for an equivalent that will search the POSIX ...
user avatar
6 votes
2 answers
14k views

Setting per-directory umask using ACLs

We want to mimic the behavior of a system-wide 002 umask on a certain directory foo, in order to ensure the following result: All sub-directories created underneath foo will have 775 permissions All ...
user avatar
  • 1,286
2 votes
0 answers
569 views

Auto set Active Directory attributes upon new User creation

I have successfully created an OpenLDAP (CentOS 6.2) to Active Directory (Windows Server 2008 R2) connection. I can login to my CentOS using an AD user. Problem is, the AD user has to have these ...
user avatar
  • 273
3 votes
2 answers
242 views

Do the GnuWin32 tools require the POSIX subsystem to run?

I would like to remove Posix from the Group Policy Object Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\System settings: Optional Subsystems. Do ...
user avatar
1 vote
1 answer
85 views

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/...
user avatar
3 votes
2 answers
5k views

Linux ACL behaviour: settings the mask changes 'ls' output, but not actual permissions

It might be the time of night, but this is puzzling me. Picture the following. [root@node1 acltest]# getfacl foo/ # file: foo # owner: root # group: testuser user::rwx group::r-x other::--- [root@...
user avatar
  • 10.2k
5 votes
1 answer
3k views

Does anyone know where a good resource for NFS4 ACLs can be found?

I am attempting to utilize NFS4 ACL's in an environment already utilizing POSIX ACL's. I've found a handful of sites on the internet that explain some technical details about NFS4 ACL's and how they'...
user avatar
  • 3,436
2 votes
2 answers
1k views

ionice process group?

Is there an easy way to change the I/O priority of a whole group of processes the way renice -g does? It seems like only changing the I/O priority of a single process is supported by ionice. If this ...
user avatar
  • 661
1 vote
1 answer
306 views

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?
user avatar
  • 301
2 votes
1 answer
65 views

Bash build environment settings

I'm newbie in Bash and I'm using MinGW as a GCC compiler. I have .profile in my home directory which sets building environment. Here is .profile content. What's a difference in commented/uncommented ...
user avatar
  • 147
13 votes
3 answers
25k views

Can Samba support full Windows-ACLs?

I've set up a Samba 3 host with AD integration and an ACL enabled filesystem. Using a windows client I can set users and groups permissions. Up to now, Samba just maps to POSIX ACL's rwx permissions, ...
user avatar
  • 131
27 votes
8 answers
8k views

Secure Network Filesystems for Linux: What are people doing?

NFSv3 is widespread, but the default security model is... quaint. CIFS can use Kerberos authentication, but without POSIX semantics it's a non-starter. AFS never did encrypt traffic on the wire and ...
user avatar
  • 6,540
1 vote
2 answers
372 views

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 ...
user avatar
14 votes
5 answers
6k views

What are the practical differences between Interix and Cygwin?

Both Interix and Cygwin appear to provide a Unix-like user environment in Windows. What are the practical differences between the two, in terms of, for example: Unix-like "feel" Performance Package ...
user avatar
3 votes
2 answers
735 views

Explain why folder's permissions differ depending on HOW user is accessing server AFP vs SSH

Hoping someone can explain what is probably fairly obvious...but confuses me. Imagine two users with admin privileges on our server (Mac OS X Server 10.5). Call them joe & bob. both users are ...
user avatar
  • 559
0 votes
3 answers
585 views

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 ...
user avatar
2 votes
1 answer
6k views

Give pthread_setschedparam() permissions to non-root user (linux)

How can I give a non-root user permission to execute pthread_setschedparam() to set thread priorities? Thank you
user avatar
  • 121
16 votes
4 answers
24k views

Specify default group and permissions for new files in a certain directory

I have a certain directory in which there is a project shared by multiple users. These users use SSH to gain access to this directory and modify/create files. This project should only be writeable to ...
user avatar
  • 263
13 votes
2 answers
18k views

What's the purpose of setgid directory?

I know how setgid works, but I don't know why it is designed, is there any example to illustrate what problems it solves?
user avatar
2 votes
4 answers
11k views

OpenLDAP & Posix Groups/Account

I'm not able to add posix users/groups to this newly created ldap directory. OpenLDAP version is 2.4.19. The LDIF I've populated the LDAP directory is probably the problem, but I'm not sure what I ...
user avatar
  • 4,133
520 votes
5 answers
256k views

What is the difference between double and single square brackets in bash?

I just wondered what exactly the difference between [[ $STRING != foo ]] and [ $STRING != foo ] is, apart from that the latter is POSIX-compliant, found in sh and the former is an extension found in ...
user avatar
  • 6,195