LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-03-2004, 12:57 PM   #1
linuxtesting2
Member
 
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, 01:01 PM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 49
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, 01:02 PM   #3
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

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

egag
 
  


Reply


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 03:29 AM
Cannot login since I entered chmod command? gopikrish Linux - Software 3 08-20-2004 06:44 PM
chmod command not affecting files blueleft Linux - General 4 08-09-2003 12:26 PM
RH 8.0 don't let me change attrib by chmod command explorer1979 Linux - General 2 10-27-2002 12:29 PM
Chmod command gogo Linux - General 2 09-24-2002 08:01 AM


All times are GMT -5. The time now is 07:05 AM.

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