|
From: Vern <ve...@cw...> - 2005-09-16 23:45:39
|
This may sound like a crazy question but it's never been an issue for me until now. I was wondering if there is a way to have two owner's of a folder. If I go under the file manager and I select the folder and try to add two user names under the owenrship bu it will not let me. Is there any other way or is this not possible? Thanks |
|
From: Joe C. <jo...@sw...> - 2005-09-16 23:56:22
|
Vern wrote: > This may sound like a crazy question but it's never been an issue for me until now. > > I was wondering if there is a way to have two owner's of a folder. If I go under the > file manager and I select the folder and try to add two user names under the owenrship > bu it will not let me. Is there any other way or is this not possible? You can't have two owners. You can, however, create a group containing those two users (it can be a secondary group, and probably should be, since many systems have a specific primary group for normal users, or they auto-generate a primary group named after the user), and then set the group ownership to that group. Just make sure group can read/write your file, and all will be well. If the folder is within a parent folder that is not readable by either user or the group, then there will still be permissions problems. I usually solve this by creating a "/home/shared" folder that all of my users have access to, and then, if you need further granularity you can create subfolders for each new group which can only be accessed by that group. |
|
From: Vern <ve...@cw...> - 2005-09-17 00:05:08
|
> You can't have two owners. =A0 I thought not. > You can, however, create a group containing=20 > those two users (it can be a secondary group, and probably should be,=20 > since many systems have a specific primary group for normal users, or=20 > they auto-generate a primary group named after the user), and then set=20 > the group ownership to that group. =A0Just make sure group can read/wri= te=20 > your file, and all will be well. =A0 Well I created a super user at it where called Vernon and made it's secon= dary group as=20 root. But still cannot write to the folder unless the folder has Vernon s= et as user.=20 So how do I make it so that a group has write access? |
|
From: Vernon J. S. <ve...@ve...> - 2005-09-17 06:41:13
|
Please do not get this vernon confused with the vernon that writes the Virtualmin 3rd party modules. We are two different people. =3D-) I am the on that writes the some Virtualmin 3rd party modules if you = notice my email address, to whom it may concern or cares. ------------------------------------------ Vernon J. Spangler http://www.vernonspangler.org/ (520) 512-8410 Home (520) 990-1863 Cell ve...@ve... ------------------------------------------ Powered by Windows XP Professional Sent by Microsoft Outlook 2003 -----Original Message----- From: Vern [mailto:ve...@cw...]=20 Sent: Friday, September 16, 2005 5:05 PM To: web...@li... Subject: Re: [webmin-l] File; Folder Ownership > You can't have two owners. =A0 I thought not. > You can, however, create a group containing=20 > those two users (it can be a secondary group, and probably should be,=20 > since many systems have a specific primary group for normal users, or=20 > they auto-generate a primary group named after the user), and then set = > the group ownership to that group. =A0Just make sure group can = read/write=20 > your file, and all will be well. =A0 Well I created a super user at it where called Vernon and made it's secondary group as=20 root. But still cannot write to the folder unless the folder has Vernon = set as user.=20 So how do I make it so that a group has write access? ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. = Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php - Forwarded by the Webmin mailing list at = web...@li... To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list |
|
From: Craig W. <cra...@az...> - 2005-09-17 00:16:02
|
On Fri, 2005-09-16 at 20:04 -0400, Vern wrote:
> > You can't have two owners.
>
> I thought not.
>
> > You can, however, create a group containing
> > those two users (it can be a secondary group, and probably should be,
> > since many systems have a specific primary group for normal users, or
> > they auto-generate a primary group named after the user), and then set
> > the group ownership to that group. Just make sure group can read/write
> > your file, and all will be well.
>
> Well I created a super user at it where called Vernon and made it's secondary group as
> root. But still cannot write to the folder unless the folder has Vernon set as user.
> So how do I make it so that a group has write access?
----
chmod g+r /path/to/file/or/folder
chmod g+s /path/to/file/or/folder # sticky bit so that any new files
# or folders that get created inside
# that folder retain the same group
Craig
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
|
|
From: Craig W. <cra...@az...> - 2005-09-17 00:26:19
|
On Fri, 2005-09-16 at 17:15 -0700, Craig White wrote: > On Fri, 2005-09-16 at 20:04 -0400, Vern wrote: > > > You can't have two owners. > > > > I thought not. > > > > > You can, however, create a group containing > > > those two users (it can be a secondary group, and probably should be, > > > since many systems have a specific primary group for normal users, or > > > they auto-generate a primary group named after the user), and then set > > > the group ownership to that group. Just make sure group can read/write > > > your file, and all will be well. > > > > Well I created a super user at it where called Vernon and made it's secondary group as > > root. But still cannot write to the folder unless the folder has Vernon set as user. > > So how do I make it so that a group has write access? > ---- > chmod g+r /path/to/file/or/folder > > chmod g+s /path/to/file/or/folder # sticky bit so that any new files > # or folders that get created inside > # that folder retain the same group ---- brain fart chmod g+w /path/to/file/or/folder # to set group write access Craig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. |
|
From: Craig W. <cra...@az...> - 2005-09-17 00:02:07
|
On Fri, 2005-09-16 at 19:45 -0400, Vern wrote: > This may sound like a crazy question but it's never been an issue for me until now. > > I was wondering if there is a way to have two owner's of a folder. If I go under the > file manager and I select the folder and try to add two user names under the owenrship > bu it will not let me. Is there any other way or is this not possible? ---- Unix uses groups for this purpose. Only one owner, one group and then there's everyone else. Given your premise, this is not possible. Under normal circumstances, create a group with the 2 members and change the group ownership of the folder to that group. Craig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. |