Novell Home

Linux Filesystem Programming

From Developer Community

Contents

About the Linux Filesystem

Linux Filesystems

File Descriptors

Obtaining a File Descriptor

Cleaning Up

Basic File I/O

Reading and Writing

Seeking

Language-Specific

Advanced File I/O

File Duplication

Controls

Language Specific

Obtaining and Setting File Information

File Type

File Size

File Time

File Permissions, Ownership, and Access Control

Understanding Linux Filesystem Permissions

Setting Permissions

File and Directory Ownership

Setuid

You can use the setuid and seteuid facilities in Linux to cause a running application to change the real or effective user id of the running process, under certain conditions. For details, see Using Setuid In Applications.

Alternative Access Control Mechanisms

PAM and NSS

PAM stands for Pluggable Authentication Modules. See the article on writing PAM-Enabled Applications to learn how to take advantage of PAM in your application.

NSS stands for Name Service Switch. Some Linux functions make use of the Name Service Switch to provide the names of certain system entities, like a user name or the machine name. See the article on writing NSS-Enabled Applications to learn how to take advantage of the Name Service Switch in your application.

Note: Do not confuse the NSS, the Linux Name Service Switch, with NSS, the Novell Storage Services filesystem.

Access Control Authorities
Extended Filesystem Attributes/Access Control Lists
Discretionary Access Control
Novell Storage Services - The NSS Filesystem

Filesystem Manipulation

Deleting, Copying, and Moving Files

Symbolic Links

Creating, Deleting, and Reading Directories

Novell® Making IT Work As One

© 2009 Novell, Inc. All Rights Reserved.