nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Chmod and Permission.. some on can help me.

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 ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Linux answers from nixCraft.


Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 19-12-2008, 07:51 PM
hrothgar's Avatar
Junior Member
User
 
Join Date: Dec 2008
OS: Slackware
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
hrothgar is on a distinguished road
Thumbs down Chmod and Permission.. some on can help me.

i got one user with name 'JACK' i create one group for this user with the name 'GOODACCESS', i want to only user from this group read only 2 folder.

i try chown :goodaccess /goodaccess

when i do this command, any user for any groups can read this foulder, how can i do to this folder be ready only for the user on this group?

Thanks!
Reply With Quote
  #2 (permalink)  
Old 23-12-2008, 05:45 PM
Junior Member
User
 
Join Date: Dec 2008
OS: Redhat
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
knvpavan is on a distinguished road
Default chmod and permissions

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
Reply With Quote
  #3 (permalink)  
Old 13-01-2009, 01:02 AM
Junior Member
User
 
Join Date: Jan 2009
OS: Solaris
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
unixmen is on a distinguished road
Default chown

chown user:group -R file or directory


the user will be the owner ,
regards
Unixmen - Linux howto and Tutorials - Unixmen Home
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

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


All times are GMT +5.5. The time now is 11:45 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38