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
1
vote
1answer
155 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 ...
0
votes
1answer
255 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 ...
0
votes
1answer
25 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 ...
1
vote
1answer
336 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 ...
1
vote
1answer
241 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. ...
0
votes
1answer
116 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 ...
3
votes
1answer
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 ...
2
votes
1answer
532 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 ...
1
vote
1answer
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 ...
2
votes
2answers
7k 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) ...
2
votes
2answers
63 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 ...
0
votes
1answer
614 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 ...
1
vote
1answer
162 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. ...
1
vote
0answers
26 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 ...
0
votes
1answer
321 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 ...
2
votes
1answer
2k 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 ...
1
vote
2answers
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 ...
1
vote
3answers
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 ...
2
votes
1answer
938 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....
2
votes
3answers
16k 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 ...
1
vote
1answer
39 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 ...
2
votes
0answers
96 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 ...
6
votes
2answers
13k 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 ...
2
votes
0answers
541 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 ...
3
votes
2answers
234 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 ...
1
vote
1answer
67 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/...
3
votes
2answers
4k 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@...
5
votes
1answer
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'...
2
votes
2answers
976 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 ...
1
vote
1answer
259 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?
2
votes
1answer
63 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 ...
12
votes
3answers
24k 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, ...
26
votes
8answers
7k 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 ...
1
vote
2answers
346 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 ...
14
votes
5answers
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 ...
3
votes
2answers
702 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 ...
0
votes
3answers
502 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 ...
2
votes
1answer
5k 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
16
votes
4answers
20k 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 ...
13
votes
2answers
17k 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?
2
votes
4answers
10k 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 ...
504
votes
5answers
234k 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 ...