Librenix
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

Newbie: Linux / Unix permissions explained

Up
vote
Down

Help for newbies trying to negotiate the command line under Linux (or Unix).
There are few things as confusing, frustrating, and aggravating for those who come to Linux from Windows as the whole notion of permissions. Based on my own personal experience, I would say as much as 25% of the problems I've had using Linux over the years have been permissions related. It's a subject your mother didn't teach you, and you didn't learn on the playgrounds. That's why we're going to get down and dirty with the CLI today: to learn about permissions on Linux, right here, right now.
read more...
mail this link | permapage | score:8377 | -Ray, January 27, 2004

Linux file permissions

Up
vote
Down

A short tutorial on Linux file permisions...
What we want to concentrate on right now is the first bit, drwxr-xr-x. This string of characters lists the full permissions of the file or directory. It is also important to know the next two strings (in this case both are jlwallen) are the user and group associated with the file.

Let’s go back to the permissions string. The first character, d, means the listing is a directory. Now, instead of looking at the next portion of the string as a single group, think of it as three groups:
read more...
mail this link | permapage | score:8280 | -Ray, January 22, 2010

Setting access permissions: Linux SUID and SGID bits

Up
vote
Down

Normally, when a program runs under Linux, it inherits the permissions of the user who is running it, thus if I run a program under my account, the program runs with the same permissions that I would have if that program were me. Thus, if I cannot open a certain file, the program I am running also cannot open the file in question. If I set the SUID or SGID bit for a file, this causes any persons or processes that run the file to have access to system resources as though they are the owner of the file. read more...
mail this link | permapage | score:8119 | -falko, March 10, 2007

CentOS / RHEL: Reset file permissions of installed rpm packages

Up
vote
Down

Sometime by mistakes all package file permissions get changed and you need to restore file permission. For example a shell script or some sort of corruption could change the permissions for packages (installed files), it may be necessary to reset them.

For example a long time ago my shell script run chmod and chown commands on /usr and changed the permission. Luckily rpm command can reset package permission. Sun Solaris pkg command and IBM can also reset permissions. read more...
permapage | score:8040 | -nixcraft, August 29, 2007

Samba share permissions simplified

Up
vote
Down

Samba software, is a free, open source implementation of networking protocols to share files between UNIX/Linux and Windows computers.

There are many ways to set permissions to your Samba shares and improve security. This article will cover some of the basic permissions and permission precedence with examples. read more...
permapage | score:7888 | -nixcraft, January 17, 2007

Group and file permissions: Linux file sharing

Up
vote
Down

Ever get the dreaded 'Permission denied' error?
Linux systems have multiple users -- and a permissions system that lets each user share or protect their files. This unique system has some odd twists. For example, did you know that, to rename or remove a file, you need write permission for the directory that the file is in? A thorough understanding of permissions lets you make your system more secure, share data easily with other users, and protect files from accidental changes. Let's look into the basics -- and some dark corners -- of Linux filesystem permissions.
read more...
mail this link | permapage | score:7674 | -Ray, January 30, 2003

Securing Linux: File Permissions and Logs

Up
vote
Down

This article also includes the commands for finding SGID and SUID programs as well as world readable/writable files...
Ownerless files can be an indication that someone has gained access to your system. You should check regularly using the command # find / -nouser -o -nogroup. If you find any ownerless files, either delete them, or, if you know what they are and wish to keep them, assign them to an appropriate user and group. For example, assign myfile to the user foo and the group bar you would issue the command # chown foo.bar myfile
read more...
mail this link | permapage | score:7154 | -Ray, April 22, 2004

Permissions and pathnames

Up
vote
Down

An exploration of pathnames and permissions for the newcomer to Linux (or Unix)...
Pathnames can confuse users, but they’re actually simple when you see how they work. A pathname gives the location of an object (a file, a directory, a socket, etc.) in the filesystem. There are two kinds of pathname: absolute (or full) and relative:
read more...
permapage | score:7125 | -Ray, March 26, 2010

File Access Permissions and umask

Up
vote
Down

Or, why you can't create a file with execute permission by default... This article was published at Sun.com but applies to all Unix and Unix-like systems.
Within UNIX, system calls have base permissions (sometimes referred to as "default permissions") with which to create new files and directories. For directories the base permissions are (octal) 777 (rwxrwxrwx), and for files they are 666 (rw-rw-rw). Before creating the file or directory, the base permissions are compared to a mask (the umask set by the umask command) that will "mask out" permission bits to determine the final permissions for the object being created. The calculation to determine the final permissions is to take the binary of the base permissions and perform a logical AND operation on the ones complement representation of the binary umask.
read more...
mail this link | permapage | score:6019 | -Ray, May 24, 2004

File Permissions Explained

Up
vote
Down

An introduction to Linux / Unix file permissions for the newbie...
In GNU/Linux, file access is restricted. Users don't necessarily have the same rights when it comes to deleting, executing or even reading files. In fact, every file contain data such as its owner, its permissions and other information which defines exactly what can be done with it, and by whom.
read more...
permapage | score:5992 | -Ray, April 6, 2006

Adding Permissions Using SELinux

Up
vote
Down

Walking through the steps to add permissions under SELinux...
As an SELinux administrator, one of the most frequent SELinux policy customizations you're likely to perform is adding permissions to coax the security engine into accepting an operation. Let's consider an actual situation based on Fedora Core 2's SELinux implementation and see how it's resolved. The procedure we'll follow isn't the only procedure or best procedure. Creating new policies typically entails a generous dollop of troubleshooting, which tends to be relatively unstructured. So rather than see our procedure as the universal norm, you should see it as merely an illustrative example.
read more...
mail this link | permapage | score:4212 | -Ray, December 20, 2004

Managing permissions on UNIX

Up
vote
Down

UNIX provides robust tools and infrastructure so that you can both protect and share information. This article looks at user privileges and, in particular, examines how to manipulate file permissions to restrict or share your directories and files with others. Understanding permissions is crucial if you want to speak UNIX fluently. Learn how to manipulate file permissions to protect your files, or share them with others. read more...
permapage | score:1917 | -BlueVoodoo, October 21, 2006
Buy Art Online with Satisfaction Guaranteed

Recent headlines

Install HY-D-V1 desktop on Ubuntu 13.04

Tutorial: Using Solr with TYPO3 on Debian 7

Antergos Linux 2013.05.12 review

Hybryde Fusion: A unique Linux distribution

How to Install Cinnamon 1.8 on ubuntu 13.04

SlateBook x2: Tegra 4-powered Android hybrid

Tutorial: Using Solr with TYPO3 on Debian 6

ROSA Desktop Fresh LXDE alpha preview

Tutorial: Build a Debian 7 Server

Using ngx_pagespeed with nginx On Debian 7

tutorial: Build a Debian 7 server

Tutorial: Install a Streaming Audio Server with Icecast 2.3.3 on CentOS 6.3 x86_64 Linux

Install Pepper Flash for Chromium on Ubuntu

Tutorial: Upgrade Debian 6 to 7

Apache OpenOffice: Help pick a new logo

Windows 8: The most important reason to switch to Linux

Improve Ubuntu Laptop Power Management

CoolShip Android all-in-keyboard computer

Tutorial: Build an Ubuntu 13.04 server

Install Mplayer and Multimedia codecs on Ubuntu 13.04

A backdoor in all Internet products and services?

Upgrade Ubuntu 12.10 to 13.04

Using Multiple PHP Versions (PHP-FPM FastCGI) With ISPConfig 3 (Ubuntu 12.04)

Lynis: Security and system auditing tool

ARM-based EMB-2500: Like Raspberry Pi, but much better

Tutorial: Build an Ubuntu 13.04 Server (Apache2, BIND, Dovecot)

Tutorial: Ubuntu 13.04 Samba Server with tdbsam

Find wasted disk space with the Agedu Unix utility

Tutorial: PHP5-FPM with Apache2 on OpenSUSE 12.3

Virtual Hosting: Proftpd, MySQL on Ubuntu 12.10

Tutorial: Install Nginx, PHP5, PHP-FPM, and MySQL on CentOS 6.4

KVM Virtualization on CentOS 6.4

Setting up ProFTPd + TLS on Ubuntu 12.10

Virtual Users/Domains with Postfix, Courier, MySQL, SquirrelMail (CentOS 6.3)

Encrypt your data with EncFS (OpenSUSE 12.3)

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin