LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 04-18-2006, 04:58 PM   #1
lsu420luv
Member
 
Registered: Jun 2005
Posts: 32

Rep: Reputation: 15
chown


How do i set the ownership to allow the members in group read write? I use chown someone.somegroup /Folder to change the own. What do I need to add?
 
Old 04-18-2006, 05:17 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
that's not chown, that's chmod - "chmod 770 /dir" for example, will give rwx to user and group and nothing to anyone else
 
Old 04-18-2006, 05:20 PM   #3
wanderingmind
Member
 
Registered: Sep 2005
Location: UK
Distribution: Ubuntu 12.04 LTS
Posts: 76

Rep: Reputation: 16
so you want to give permission to read and write in a folder?

so as a root you do
chown username:groupname Folder

then

chmod ug+rw Folder

that gives user and group read & write permissions. To just give it to group

chmod g+rw Folder
 
Old 04-18-2006, 06:08 PM   #4
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
It's also very useful to note that the "770" and "g+rw" noted above are very similar -- using the octal 777 is the same as +rwx. If you're getting into chmod, it may help to look up the octal permission values (4 = read, 2 = write, 1 = execute) because you'll be running into them often.
 
  


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
chown loopoo Linux - Newbie 5 08-09-2005 10:38 AM
Chown -R Jakeh2k1 Linux - General 3 10-31-2004 05:23 PM
chown -R ujotne Programming 3 02-25-2004 01:02 PM
chown Sathe Linux - General 13 10-14-2002 12:25 PM
chown? joetec Linux - Newbie 6 04-07-2002 05:46 AM


All times are GMT -5. The time now is 04:22 PM.

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