security
I've been runing Mandrake for a couple of years and I'm still having problems with groups. This is the procedure for making a group and sharing a subdirectory that I use. Can someone tell me where I'm screwing up? Thanks in advance
Make a folder: mkdir /home/everyone
make group: groupadd everyone
add users gpasswd -a dave everyone
add users gpasswd -a laura everyone
change the group for the folder chgrp -R everyone /home/everyone
add write for group everyone chmod g+r /home/everyone
When I'm done with this I still can not make a folder in /home/everyone logged on as dave.
again thanks for your help
Signature · 8 lines
Dave Pomeroy K7DNP South Eastern Washington - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 9 lines · dave
I've been runing Mandrake for a couple of years and I'm still having problems with groups. This is the procedure for making a group and sharing a subdirectory that I use. Can someone tell me where I'm screwing up? Thanks in advance
Make a folder: mkdir
/home/everyone
make group: groupadd everyone
add users gpasswd -a dave everyone
add users gpasswd -a laura everyone
change the group for the folder chgrp -R everyone/home/everyone
add write for group everyone chmod g+r/home/everyone
When I'm done with this I still can not make a folder in/home/everyonelogged on as dave.
This step looks wrong:
chmod g+r /home/everyone
Don't you want this to read
chmod g+w /home/everyone
or
chmod g+rw /home/everyone
since making a "folder" (a subdirectory in Linuxspeak) requires writing to the directory, not reading it?
Anyway, see what "ls -l /home |grep everyone" reports about permissions for /home/everyone . Even if I've got the chmod options wrong, you want to have the directory writable by its group ... so make sure the permissions are something like drwxrwxr-x. "chmod 775 /home/everyone" should produce this.
If that's not the problem, take a look behind the curtain of the commands you're trying to see what is actually wrong (though the rest of the commands you report look OK to me). Look at (or show us) this:
the entry in /etc/groups for "everyone"
the output of "ls -l /home | grep everyone"
the actual error response when userid dave executes these commands
touch /home/everyone/sometestfile
mkdir /home/everyone/somedirectoryname
(or some equivalent commands ... but show both the exact commands and the exact errors)
Also mention if there is anything unusual about what you are doing ... for example, if an NFS or SMB mount is involved, or if you log in as someone else then su to dave, or ... you get the idea.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
On Tue, Feb 17, 2004 at 09:55:34AM -0800, dave hunted and pecked out:
Quoted 11 lines
I've been runing Mandrake for a couple of years and I'm still having problems with groups.
This is the procedure for making a group and sharing a subdirectory that I use. Can someone tell me where I'm screwing up? Thanks in advanceMake a folder: mkdir
/home/everyone
make group: groupadd everyone
add users gpasswd -a dave everyone
add users gpasswd -a laura everyone
change the group for the folder chgrp -R everyone/home/everyoneadd write for group everyone chmod g+r/home/everyone
Could just be a typo, but r adds read privileges. g+w would add write privileges.
Quoted 2 lines
When I'm done with this I still can not make a folder in
/home/everyonelogged on as dave.
If that wasn't a typo, then it would explain why you can't write a new directory in the /home/everyone folder.
Quoted 6 lines
again thanks for your help
Signature · 1 line
Dave Pomeroy K7DNP South Eastern Washington
Cheers,
Sean
Signature · 7 lines
Theo. Sean Schulze [email protected] - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 30 lines · Theo. Sean Schulze
On Tue, Feb 17, 2004 at 09:55:34AM -0800, dave hunted and pecked out:
Quoted 10 lines
I've been runing Mandrake for a couple of years and I'm still having problems with groups. This is the procedure for making a group and sharing a subdirectory that I use. Can someone tell me where I'm screwing up? Thanks in advance
Make a folder: mkdir
/home/everyone
make group: groupadd everyone
add users gpasswd -a dave everyone
add users gpasswd -a laura everyone
change the group for the folder chgrp -R everyone/home/everyoneadd write for group everyone chmod g+r/home/everyoneCould just be a typo, but r adds read privileges. g+w would add write privileges.
Quoted 3 lines
When I'm done with this I still can not make a folder in
/home/everyonelogged on as dave.If that wasn't a typo, then it would explain why you can't write a new directory in the
/home/everyonefolder.Quoted 2 lines
again thanks for your help
Quoted 9 lines
Quoted 5 lines
Signature · 1 line
Dave Pomeroy K7DNP South Eastern WashingtonCheers,
Sean
Sean,
That was a typo. I've made some progress with Rays help. It appears
msec is causing the problem. It keeps running and revoking the write on the /home/everyone subdirectory for the group. I'll work on msec. Thanks for the help
Signature · 8 lines
Dave Pomeroy K7DNP South Eastern Washington - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
At 01:22 PM 2/17/2004 -0800, dave wrote:
[...]
Quoted 3 lines
That was a typo. I've made some progress with Rays help. It appears
msec is causing the problem. It keeps running and revoking the write on the/home/everyonesubdirectory for the group. I'll work on msec. Thanks for the help
If I read the online docs for msec correctly, the standard mask for permissions is normally determined by the security level you choose to run msec at; the higher the level, the more restrictive the permissions. But this is one of the things you can modify independent of security level, by settings in
/etc/security/msec/perm.$PERM_LEVEL
or
/etc/security/msec/perm.local
Look in http://www.mandrakeuser.org/docs/secure/smsec.html for the details.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs