08-09-2014
Not all that clear…
Is this the home directory of the user?
A home directory should be writeable to its owner if you don't want to deal with side effects..
If not, remember you have other permissions: for group and other…
You should play with them
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
How can i give permission for a specific user ( eg. admin ) ?
I tried with chmod admin+r prog.sh
which doesnt work.
Is there any way i can specify a user's name and give the permission?
Thanks in advance.
Saneesh Joseph. (1 Reply)
Discussion started by: saneeshjose
1 Replies
2. Shell Programming and Scripting
hi everyone.
iīve been burning my head for a week now with this problem and i couldnīt find a solution. iīve been looking for an answer in this forum but nothing either. so i decided to ask.
the thing is, i want to create a users with permission to kill just a group of users. i know how to write... (6 Replies)
Discussion started by: lucasmarin
6 Replies
3. Shell Programming and Scripting
I have some of programs in unix system which are to started with one_user say "xxxx".
I have sudo permission if i start these programs with sudo it shows root permission. But i want these programs permession should be "xxxx".
I tried "su user_name -c Program_name"
but it is not... (3 Replies)
Discussion started by: srikanthus2002
3 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
I created testuser. by following command.
/usr/sbin/adduser -n test -d /disk05/collections/GET/testdata/
and then set its password by following command.
passwd testuser
When I login to system by testuser, it enters everything is ok.
The problem is how to set permission to this... (3 Replies)
Discussion started by: mr_bold
3 Replies
5. Solaris
is is possible to grant user access to only one subdirectory? example
a. create ftp user with read/write/delete access (ftp user doesnt belong to uguys group)
$ cd /etc/mydir
$ls
file1 file2
$ls -al
-rw-rw-r-x 2 unixguy uguys 96 Dec 8 12:53 file1
-rw-rw-r-x 2 unixguy uguys 96 Dec 8... (1 Reply)
Discussion started by: lhareigh890
1 Replies
6. UNIX for Dummies Questions & Answers
I have problem giving user access to his public_html directory.
While when I am logged as root I can access my files by going to
www.myserver.com/file.htmlwhere file.html is actually on this path...
var/www/file.htmlBut when user tries to access his file.html on this path....
~user/file.html it... (10 Replies)
Discussion started by: joker40
10 Replies
7. Solaris
hi guys..
how to give root permission for particular user
tel me step by step (2 Replies)
Discussion started by: coolboys
2 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have a shell script(test.sh) and need to give execute permission for this shell script to user group
cobr_sftp and oracle.
Could you please help as to how to give this permission.
I have already given full access(777) to script test.sh. Does this mean all the users/user group can access... (1 Reply)
Discussion started by: abhi_123
1 Replies
9. Red Hat
Hi folks,
I am trying to grant the access like below items using the setfacl command, but i couldn't achieve as what I required. any other possibility.
username : testing
Readonly access in /form_dl/system/prd/logs
Write only access in /form_dl/system/prd/deploy
No access to other... (0 Replies)
Discussion started by: gsiva
0 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
We have a scenario in production where we want only one user from a group to modify the file. The file is not set to write permission for application manager.
-r--r--r-- 1 amgr u00 15661716 Aug 30 00:06 DCI.dat
So here amgr will have permission to edit the file. We want a... (10 Replies)
Discussion started by: arunkumar_mca
10 Replies
access(2) System Calls Manual access(2)
NAME
access - Determines the accessibility of a file
SYNOPSIS
#include <unistd.h>
int access (
const char *path,
int access_mode) ;
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
access(): XPG4, XPG4-UNIX
Refer to the standards(5) reference page for more information about industry standards and associated tags.
PARAMETERS
Points to the file pathname. When the path parameter refers to a symbolic link, the access() function returns information about the file
pointed to by the symbolic link.
Permission to access all components of the path parameter is determined by using a real user ID instead of an effective user ID, and
a group access list (including a real group ID) instead of an effective group ID. Specifies the type of access. The bit pattern
contained in the access_mode parameter is constructed by a logical OR of the following values: Checks read permission. Checks write
permission. Checks execute (search) permission. Checks to see if the file exists.
DESCRIPTION
The access() function checks for accessibility of the file specified by a pathname.
Only access bits are checked. A directory may be indicated as writable by access(), but an attempt to open it for writing will fail
(although files may be created there); a file's access bits may indicate that it is executable, but the execve() function can fail if the
file does not contain the proper format.
RETURN VALUES
Upon successful completion, the access() function returns value of 0 (zero). Otherwise, a value of -1 is returned and errno is set to
indicate the error.
ERRORS
If the access() function fails, access to the file specified by the path parameter is denied and errno may be set to one of the following
values: Permission bits of the file mode do not permit the requested access, or search permission is denied on a component of the path pre-
fix. 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. The path parameter points outside the process' allocated address space. The pathname contains a char-
acter with the high-order bit set. An I/O error occurred while reading from or writing to the file system. Too many symbolic links were
encountered in translating the pathname. A component of a pathname exceeded PATH_MAX characters, or an entire pathname exceeded NAME_MAX
characters. The named file does not exist or is an empty string. A component of the path prefix is not a directory. Write access is
requested for a file on a read-only file system.
RELATED INFORMATION
Functions: chmod(2), stat(2)
Standards: standards(5) delim off
access(2)