LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-08-2002, 02:46 PM   #1
Atroxic
Member
 
Registered: Jan 2002
Posts: 41

Rep: Reputation: 15
chmod


Here's the scenario:
A few of my friends and I are working on a mud. We'd each like our own logins, but when it comes time to compile, the Makefile uses "chmod g+w", which to my understanding is a command that is only to be entered by the files' owner. Since we can't have more than one owner for a file, we keep having to switch to one person's account. Is there a way to get around this?

-Atroxic
 
Old 02-08-2002, 04:22 PM   #2
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
g+w is add write for members of owning group.

e.g.

chown dorward.mylittlegroup myfile
chmod g+w myfile
adduser dorward mylittlegroup
adduser bob mylittlegroup

Now bob and dorward can both edit the file.
 
Old 02-08-2002, 07:31 PM   #3
Atroxic
Member
 
Registered: Jan 2002
Posts: 41

Original Poster
Rep: Reputation: 15
Could you give a little better of an explanation on this? Like, who initially owns the file? And adduser doesn't work unless the user doesn't exist and I'm creating it, so how would that help? I already have the users created, and they're in a group called coders.

-Atroxic
 
Old 02-08-2002, 08:18 PM   #4
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
adduser existingusername somegroup

would add the existingusername to somegroup.

As the group exists already and the people are members you can:


chmod 664 filename
chown username.coders filename
 
Old 02-08-2002, 08:46 PM   #5
Atroxic
Member
 
Registered: Jan 2002
Posts: 41

Original Poster
Rep: Reputation: 15
It just keeps telling me this:
adduser: user atroxic exists

That's all it allows me to do.

-Atroxic
 
Old 02-09-2002, 04:57 AM   #6
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
That would suggest your adduser script works in a different way to mine. You could edit you /etc/group file manually.

groupname:x:groupnumber:user1,user2,user3
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use Chmod Centinul Linux - Newbie 8 06-30-2005 10:44 AM
What can we do if we type chmod ugo-x /bin/chmod ?????? bunny123 Linux - Software 3 02-01-2005 08:53 PM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 05:37 AM
Chmod gibbylinks Linux - Newbie 1 10-23-2003 11:17 AM
chmod u+s csDraco_ Slackware 6 04-22-2003 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:38 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
Open Source Consulting | Domain Registration