Sponsored Content
Full Discussion: Extreme Beginner
Special Forums UNIX Desktop Questions & Answers Extreme Beginner Post 302916015 by SomeDudeOnline on Friday 5th of September 2014 06:32:22 PM
Old 09-05-2014
Thank you all, every explanation was very helpful.For the permissions issue, I found an explanation online that I just couldn't make sense of but Jim did a fantastic job.

Code:
File type: d== directory l== link
|
|
|
|
|
_
drwxrwxr-x
 ___   ___
  | ___ |
  |  |  |
  |  |  (World) other permissions  r,w,x, and -
  |  group permissions r,w,x, and -
  owner permissions: r == read, w== write, x ==execute  - == permission denied

So to confirm: In the code above from Jim's explanation, the "d" in "drwxrwxr-x" means "Directory", and if that line were instead "lrwxrwxr-x" the "l" would mean "Symbolic Link", and if that line were instead "-rwxrwxr-x" the "-" would mean "Permission Denied"?
 

3 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Beginner Help

hi guys, i have a DEl xps laptop cor 2 duo 2.2 i have vista installed on it i want to install a dual Boot UNIX on it.. can some one guide me ...cause i m tottaly new to UNIX i want to install unix on that laptop along with Vista.... thx any help would be deeply appreciated (sorry if i... (5 Replies)
Discussion started by: Farhan082
5 Replies

2. Shell Programming and Scripting

Beginner Help

I need to write a script to test a nsort c program. I have written 8 .txt files with different cases. Also 8 .txt files with expected outcome. The shell I have written always "test pass" for the first case but always "fail" for the rest... Here is a portion of my code (as I still don't know how to... (5 Replies)
Discussion started by: thibodeau
5 Replies

3. UNIX for Dummies Questions & Answers

Beginner - What Should I Do First?

Hi people.... I have just started to learn unix.I want to know which version of Unix to install plus how to install it.I need to practise and make myself aware of how unix works.My thread is from an educational point of view.Also please feel free to give your suggestions as I am... (3 Replies)
Discussion started by: amit.kanade1983
3 Replies
ACCESS(2)						      BSD System Calls Manual							 ACCESS(2)

NAME
access -- check access permissions of a file or pathname SYNOPSIS
#include <unistd.h> int access(const char *path, int mode); DESCRIPTION
The access() function checks the accessibility of the file named by path for the access permissions indicated by mode. The value of mode is the bitwise inclusive OR of the access permissions to be checked (R_OK for read permission, W_OK for write permission and X_OK for exe- cute/search permission) or the existence test, F_OK. All components of the pathname path are checked for access permissions (including F_OK). The real user ID is used in place of the effective user ID and the real group access list (including the real group ID) are used in place of the effective ID for verifying permission. Even if a process has appropriate privileges and indicates success for X_OK, the file may not actually have execute permission bits set. Likewise for R_OK and W_OK. RETURN VALUES
If path cannot be found or if any of the desired access modes would not be granted, then a -1 value is returned; otherwise a 0 value is returned. ERRORS
Access to the file is denied if: [ENOTDIR] A component of the path prefix is not a directory. [ENAMETOOLONG] A component of a pathname exceeded {NAME_MAX} characters, or an entire path name exceeded {PATH_MAX} characters. [ENOENT] The named file does not exist. [ELOOP] Too many symbolic links were encountered in translating the pathname. [EROFS] Write access is requested for a file on a read-only file system. [ETXTBSY] Write access is requested for a pure procedure (shared text) file presently being executed. [EACCES] Permission bits of the file mode do not permit the requested access, or search permission is denied on a component of the path prefix. The owner of a file has permission checked with respect to the ``owner'' read, write, and execute mode bits, members of the file's group other than the owner have permission checked with respect to the ``group'' mode bits, and all others have permissions checked with respect to the ``other'' mode bits. [EFAULT] Path points outside the process's allocated address space. [EIO] An I/O error occurred while reading from or writing to the file system. [EINVAL] An invalid value was specified for mode. SEE ALSO
chmod(2), stat(2) STANDARDS
The access() function conforms to ISO/IEC 9945-1:1990 (``POSIX.1''). CAVEAT
Access() is a potential security hole and should never be used. 4th Berkeley Distribution April 1, 1994 4th Berkeley Distribution
All times are GMT -4. The time now is 04:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy