Skip to content

SnipIT No 1: Checking Permissions in Solaris

05/04/2011

SnipIT is a series of short blogs containing useful information in an easily digestible format.

First up; How to check permissions of files and folders in Solaris. This may seem obvious to some but to new-comers it should prove useful.

File Permissions
ls -al
The a option lists all the files in the directory, including hidden files (those that start with “.”). Without this option, those files will not be listed.
The l option lists the files in the “long” format, in other words; the permissions on the file, the number of hard links, the owner, group, size, date and filename.

Folder Permissions
This is very similiar to file permissions:
ls -ld
As above, the l options lists details in the “long” format. The d option lists information about directories and symbolic links.

Without specifing a directory, information on the current directory will be displayed, using ls -ld will return information on a sub-directory of the current one, unless you drill back by using the ../ path.

Link to information on hard links and symbolic links will come shortly.

Advertisements

From → Unix/Linux

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: