Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-03-2004, 11:57 AM   #1
Registered: Mar 2004
Location: Norway
Distribution: Freebsd, Fedora, Redhat, Solaris 10
Posts: 169

Rep: Reputation: 30
chmod command

How can i add access for to users to 1 file/map. Do i have to add these accounts into one group, and allow that group to rwx that file? I dont want to change the ownership of the file, and i dont want every people to have access to that file. Do i need to make a group for those to, or is there some other ways?
Old 09-03-2004, 12:01 PM   #2
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
yes, the best way to achieve this is to create a group and assign permissions to this group.

groupadd - to add group
usermod -G groupname username - to add user to the new group.

chgrp groupname directoryname
Old 09-03-2004, 12:02 PM   #3
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
yip, i think you gotto make a group of them with rwx-access.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CHMOD Command dudeman41465 Linux - Software 1 09-26-2005 02:29 AM
Cannot login since I entered chmod command? gopikrish Linux - Software 3 08-20-2004 05:44 PM
chmod command not affecting files blueleft Linux - General 4 08-09-2003 11:26 AM
RH 8.0 don't let me change attrib by chmod command explorer1979 Linux - General 2 10-27-2002 11:29 AM
Chmod command gogo Linux - General 2 09-24-2002 07:01 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration