Re: Multi-user and shared directories

2007-08-30 Thread Roberto Bechtlufft
> man newgrp

Nice, I didn't even know this command existed... very interesting,
thanks again. But I really liked this one:

> chgrp dosemu directory_where_are_files_created
> chmod g+rwxs directory_where_are_files_created

Thanks Frantisek, that's exactly what I want.
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Multi-user and shared directories

2007-08-30 Thread Frantisek Hanzlik

"umod 002" -> "umask 002"

"you can only have one group to a file/directory" : it isn't very right,
at least ext2, ext3 and xfs filesystems supports POSIX Access Control Lists
(ACL - see "man acl", "man getfacl","man setfacl") and is possible set
different access rights (read, write, search/execute) on directories/files
for different users and different groups. And on directories is possible set
default ACL, again for different users and/or different groups, and new
objects inherits default ACL of the containing directory as its access ACL.

Frantisek Hanzlik

Alain M. wrote:

I looks like your explanation "chmod 002" was meant "umod 002" and thus
would be "chmod 775" which is correct.

But remember that you can only have one group to a file/directory, that
is a Linux limitation. Maybe you need an extra group...

Alain

Roberto Bechtlufft escreveu:

Ok, question number 327 :-)

Suppose I have users roberto and fatima. roberto is under the groups
roberto and dosemu, and fatima is under fatima and dosemu. When I do a
chmod 002 and as roberto create a new file all users under the group
roberto can read and write to it. However, I want my files to be
created under the dosemu group, and not roberto, so fatima can read
and write to it to. How can I do it?
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html




-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

!DSPAM:46d73b9562671804284693!


-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Multi-user and shared directories

2007-08-30 Thread Alain M.

I looks like your explanation "chmod 002" was meant "umod 002" and thus
would be "chmod 775" which is correct.

But remember that you can only have one group to a file/directory, that
is a Linux limitation. Maybe you need an extra group...

Alain

Roberto Bechtlufft escreveu:

Ok, question number 327 :-)

Suppose I have users roberto and fatima. roberto is under the groups
roberto and dosemu, and fatima is under fatima and dosemu. When I do a
chmod 002 and as roberto create a new file all users under the group
roberto can read and write to it. However, I want my files to be
created under the dosemu group, and not roberto, so fatima can read
and write to it to. How can I do it?
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html




-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Multi-user and shared directories

2007-08-30 Thread Frantisek Hanzlik

chgrp dosemu directory_where_are_files_created
chmod g+rwxs directory_where_are_files_created

SGID bit set on directory will cause trick: all files created under
will have group as directory, not primary user group (in this case
roberto and fatima).

Frantisek Hanzlik

Roberto Bechtlufft wrote:

Ok, question number 327 :-)

Suppose I have users roberto and fatima. roberto is under the groups
roberto and dosemu, and fatima is under fatima and dosemu. When I do a
chmod 002 and as roberto create a new file all users under the group
roberto can read and write to it. However, I want my files to be
created under the dosemu group, and not roberto, so fatima can read
and write to it to. How can I do it?
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

!DSPAM:46d728b759371533111866!


-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Multi-user and shared directories

2007-08-30 Thread Frank Cox
On Thu, 30 Aug 2007 17:38:43 -0300
"Roberto Bechtlufft" <[EMAIL PROTECTED]> wrote:

> Suppose I have users roberto and fatima. roberto is under the groups
> roberto and dosemu, and fatima is under fatima and dosemu. When I do a
> chmod 002 and as roberto create a new file all users under the group
> roberto can read and write to it. However, I want my files to be
> created under the dosemu group, and not roberto, so fatima can read
> and write to it to. How can I do it?

man newgrp

-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Multi-user and shared directories

2007-08-30 Thread Roberto Bechtlufft
Ok, question number 327 :-)

Suppose I have users roberto and fatima. roberto is under the groups
roberto and dosemu, and fatima is under fatima and dosemu. When I do a
chmod 002 and as roberto create a new file all users under the group
roberto can read and write to it. However, I want my files to be
created under the dosemu group, and not roberto, so fatima can read
and write to it to. How can I do it?
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Fw: Re: Multi-user and shared directories (second try with part 3)

2007-08-30 Thread Frank Cox
Looks  like it's something in the last two paragraphs that causes the mailing
list server to reject my this message.  I will reword it a bit to see if that
solves the problem.

Begin forwarded message:

You can create your frontend directly with the batchfile using choice.exe, or
you can write it using any dos compiler or interpreter, or whatever floats your
boat. I personally wrote my frontends using the powerbasic compiler  because
it's easy to make them bulletproof, plus they are prettier than they would be
when using choice.exe.

Once you have your user's directory structure, batch files, programs and
what-have-you laid out, copy the whole thing into /etc/skel and all new users
will automatically inherit everything ready-to-roll as you create them.



-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Multi-user and shared directories (reply part 1 of 3)

2007-08-30 Thread Frank Cox
Once again the over-eager spam filter on the mailing list server has apparently
eaten my reply to Roberto.  He got it himself as I sent him a copy directly,
but it has not appeared on the mailing list here for the benefit of anyone else
who might be interested in this topic.

I will try resending it to the list now in three parts and see if it gets
through this way.

Begin forwarded message:

Date: Wed, 29 Aug 2007 22:53:09 -0600
From: Frank Cox <[EMAIL PROTECTED]>
To: "Roberto Bechtlufft" <[EMAIL PROTECTED]>
Cc: linux-msdos@vger.kernel.org
Subject: Re: Multi-user and shared directories


On Thu, 30 Aug 2007 01:06:18 -0300
"Roberto Bechtlufft" <[EMAIL PROTECTED]> wrote:

> Well, I dont have a ~/.dosemu/freedos directory here. All I have is this:

The server that the article is written about currently uses dosemu 1.2.2; I
haven't gotten around to updating it to 1.4 yet (though I do use 1.4 on my own
computer). The 1.4 equivalent to ~/dosemu/freedos is ~/.dosemu/drive_c

> Is this what you mean:

Not exactly.  You are making it more complex than it needs to be.



-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Multi-user and shared directories (reply part 2 of 3)

2007-08-30 Thread Frank Cox

Just make a symbolic link in ~/.dosemu/drive_c to point to a common directory.
For example:

mkdir /opt/dosstuff
ln -s /opt/dosstuff ~/.dosemu/drive_c/dosstuff

Set your permissions in /opt/dosstuff to whatever you want.

Now you can use "cd dosstuff" from a dos prompt within your dosemu window to
move to /opt/dosstuff.

This gives you the flexibility of having one or many shared dos directories,
plus having private dos directories for each user.

If you choose to do it the way that I do it, your users will never see a dos
prompt.  autoexec.bat cranks up a frontend menu that exits with various
errorlevels to jump to points in the batch file that change directories
(private under ~/dosemu/freedos and shared under /opt) and run programs as
needed.


-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Multi-user and shared directories

2007-08-30 Thread Roberto Bechtlufft
> This gives you the flexibility of having one or many shared dos directories,
> plus having private dos directories for each user.

Hm... you're right.

> If you choose to do it the way that I do it, your users will never see a dos
> prompt.  autoexec.bat cranks up a frontend menu that exits with various
> errorlevels to jump to points in the batch file that change directories
> (private under ~/dosemu/freedos and shared under /opt) and run programs as
> needed.

Ok, now I get it, thas a pretty cool idea! Guess I'm goind to do
something along these lines too.

> Once you have your user's directory structure, batch files, programs and
> what-have-you laid out, copy the whole thing into /etc/skel and all new users
> will automatically inherit everything ready-to-roll as you create them.

That's why I love Linux :-)

Thank you very much for your help. I was a bit confused at the
beginning but now I'm really getting the idea. And all the other guys
also gave some pretty cool tips, thanks too. I thought that this list
was almost dead, maybe because the documentation is outdated, but
seems like there is quite a loyal DOSEmu following here.
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Multi-user and shared directories

2007-08-30 Thread Frantisek Hanzlik

I use dosemu & Linux terminal server (k12ltsp) by several customers
in production environment (mainly some economical DOS programs).
There maybe better solve dosemu setting as "hardware oriented",
because terminals physical location may determine e.g. local printers
use in DOS. Therefore I have on some point in linux fs (/var/DOS/stations
in example below) directories describing individual terminals, which
act as dosemu boot path instead these in "~/.dosemu/", i.e. they
contains drive_c, drives, run directories an other files.
And dosemu starting script determine terminal (or server, why not
work on it?) from environment setting (use variables LTSP_HOSTNAME,
DISPLAY, output of `uname -n`), and then start DOSEMU in manner:

xdosemu --Fimagedir /var/DOS/stations/varta \
 -f /var/DOS/stations/varta/.dosemurc C:\\runmyapp.bat

where "varta" is resolved terminal location (but it maybe e.g. terminal
IP address too)

By concept of this "HW oriented" instead of "user oriented" dosemu use
may be one user login on multiple terminals and run dosemu (I know
this is bad idea, but in real world more frequent then multiple users
working on single terminal ;))
Sorry for my un-standard english language extension :)

Frantisek Hanzlik

Roberto Bechtlufft wrote:

Hi everybody, I'm new to dosemu and to this list.

Here's the situation: i'm installing Dosemu on a multiuser
environment. There is a central server running it, and some terminal
accessing it. What I would like to know is: what's the best way to
share this Dosemu installation with the terminals? Since Dosemu's C:
is /home/server/.dosemu/drive_c, should I share this folder with the
terminals or change the default C: for Dosemu? And of course, how can
I do it? :-)

thansk for your help...
-



-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Multi-user and shared directories

2007-08-29 Thread Roberto Bechtlufft
> As noted in the article link, my recommendation (and practice) is to use
> symbolic links and share.exe.

Your article is very interesting, but I'm still a bit confused at a few points:

"I have a symbolic link in everyone's ~/dosemu/freedos directory that
points to a directory under /opt. I can just cd to the shared
directory under /opt and read and write the database there."

Well, I dont have a ~/.dosemu/freedos directory here. All I have is this:

$ ls -l .dosemu/
total 20
-rw-rw-r-- 1 robertobech robertobech 2693 2007-08-30 00:59 boot.log
-rw-rw-r-- 1 robertobech robertobech  402 2007-08-30 00:59 disclaimer
drwxrwxr-x 3 robertobech robertobech 4096 2007-08-30 00:59 drive_c
drwxrwxr-x 2 robertobech robertobech 4096 2007-08-30 00:59 drives
drwx-- 2 robertobech robertobech 4096 2007-08-30 00:59 run

Is this what you mean:

mkdir /opt/dosemu
ln -s /opt/dosemu /home/user/.dosemu/drive_c (do this symbolic link
for every user)
chgrp -R dosemu /opt/dosemu

Or did I get it wrong?

Man, this list is great. Dosemu documentation is a bit outdated, and
you guys are really helping a lot, thanks.
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Multi-user and shared directories

2007-08-29 Thread Frank Cox
On Wed, 29 Aug 2007 15:41:52 -0300
"Roberto Bechtlufft" <[EMAIL PROTECTED]> wrote:

> I'm trying to decide the best way to make all users
> access the same drive_c. Did you get it?

As noted in the article link, my recommendation (and practice) is to use
symbolic links and share.exe.


-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Multi-user and shared directories

2007-08-29 Thread Roberto Bechtlufft
I'm sorry, I should give you guys more details... the server runs the
GNOME desktop from Fedora. DOSEMU is only one of the apps the
terminals use, they access a fully-functional GNOME desktop and then
call xdosemu through a link on the Desktop.

Each terminal access the server as a different user, so I end up with
different .dosemu folders, one for each home directory, containing
their own drive_c. I'm trying to decide the best way to make all users
access the same drive_c. Did you get it?
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Multi-user and shared directories

2007-08-29 Thread Frank Cox
On Wed, 29 Aug 2007 12:04:15 -0300
"Roberto Bechtlufft" <[EMAIL PROTECTED]> wrote:

> Hi everybody, I'm new to dosemu and to this list.
> 
> Here's the situation: i'm installing Dosemu on a multiuser
> environment. There is a central server running it, and some terminal
> accessing it. What I would like to know is: what's the best way to
> share this Dosemu installation with the terminals? Since Dosemu's C:
> is /home/server/.dosemu/drive_c, should I share this folder with the
> terminals or change the default C: for Dosemu? And of course, how can
> I do it? :-)

http://www.melvilletheatre.com/articles/powerbasic-linux


-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Multi-user and shared directories

2007-08-29 Thread Roberto Bechtlufft
Hm, this looks great! Maybe I can even learn a few tricks from it.
Thanks, Frank!

On 8/29/07, Frank Cox <[EMAIL PROTECTED]> wrote:
> On Wed, 29 Aug 2007 12:04:15 -0300
> "Roberto Bechtlufft" <[EMAIL PROTECTED]> wrote:
>
> > Hi everybody, I'm new to dosemu and to this list.
> >
> > Here's the situation: i'm installing Dosemu on a multiuser
> > environment. There is a central server running it, and some terminal
> > accessing it. What I would like to know is: what's the best way to
> > share this Dosemu installation with the terminals? Since Dosemu's C:
> > is /home/server/.dosemu/drive_c, should I share this folder with the
> > terminals or change the default C: for Dosemu? And of course, how can
> > I do it? :-)
>
> http://www.melvilletheatre.com/articles/powerbasic-linux
>
>
> --
> MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
>


-- 
www.linuxparaoresgate.com
Dicas e tutoriais para administradores de sistemas em apuros.
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html