Linux / UNIX Tech Support Forum
This is a discussion on Chmod and Permission.. some on can help me. within the Linux software forums, part of the Linux Getting Started category; i got one user with name 'JACK' i create one group for this user with the name 'GOODACCESS', i want ...
|
|||||||
| Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
| Sponsored Links | ||
|
|
|
|||
|
Hi,
If you need the above stated functionality you need to perform the following steps: 1) Create a common directory in / Ex: mkdir /commondirectory Note the permissions of this directory like drwxrwx--- ......... i.e the others should not have any permissions. 2) Change the group of /commondirectory using chgrp command chgrp GOODACCESS /commondirectory After executing this command the group ownership will be changed to GOODACCESS 3) login as jack user and create a file in /commondirectory example : touch /commondirectory/file1 4)check the permissions of file1 by typing ls -l file1 Now you want others i.e member of the group to access this file so change the group ownership of the file file1 chgrp GOODACCESS /commondirectory/file1 After executing this command the file1 group ownership will be chaged to GOODACCESS. ls -l file1 -rw-rw-r-- 1 jack GOODACCESS 35 Dec 23 18:23 file1 finally any user who is present in this group can read and write into this file. Hope this helps |
|
|||
|
chown user:group -R file or directory
the user will be the owner , regards Unixmen - Linux howto and Tutorials - Unixmen Home |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Slave DNS permission problem | asim.mcp | All about FreeBSD/OpenBSD/NetBSD | 0 | 19-10-2008 07:19 PM |
| How to set folder permission | enochalbert | Ubuntu / Debian | 1 | 25-09-2008 10:19 PM |
| how to chmod to run the script | manoharp2008 | Shell scripting | 2 | 22-08-2008 02:10 PM |
| Problem with chmod 777 -R / * | ramakrishna | CentOS / RHEL / Fedora | 1 | 24-03-2008 09:27 PM |
| Permission | asim.mcp | Linux software | 1 | 12-08-2006 03:40 AM |