* Multi-user and shared directories
@ 2007-08-29 15:04 Roberto Bechtlufft
2007-08-29 15:37 ` Frank Cox
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: Roberto Bechtlufft @ 2007-08-29 15:04 UTC (permalink / raw)
To: linux-msdos
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...
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: Multi-user and shared directories 2007-08-29 15:04 Multi-user and shared directories Roberto Bechtlufft @ 2007-08-29 15:37 ` Frank Cox 2007-08-29 15:52 ` Roberto Bechtlufft [not found] ` <1201128185-1188400615-cardhu_decombobulator_blackberry.rim.net-628304760-@bxe018.bisx.prod.on.blackberry> 2007-08-30 8:21 ` Frantisek Hanzlik 2 siblings, 1 reply; 14+ messages in thread From: Frank Cox @ 2007-08-29 15:37 UTC (permalink / raw) To: Roberto Bechtlufft; +Cc: linux-msdos On Wed, 29 Aug 2007 12:04:15 -0300 "Roberto Bechtlufft" <robertobech@gmail.com> 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Multi-user and shared directories 2007-08-29 15:37 ` Frank Cox @ 2007-08-29 15:52 ` Roberto Bechtlufft 0 siblings, 0 replies; 14+ messages in thread From: Roberto Bechtlufft @ 2007-08-29 15:52 UTC (permalink / raw) To: linux-msdos Hm, this looks great! Maybe I can even learn a few tricks from it. Thanks, Frank! On 8/29/07, Frank Cox <theatre@sasktel.net> wrote: > On Wed, 29 Aug 2007 12:04:15 -0300 > "Roberto Bechtlufft" <robertobech@gmail.com> 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. ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <1201128185-1188400615-cardhu_decombobulator_blackberry.rim.net-628304760-@bxe018.bisx.prod.on.blackberry>]
[parent not found: <2c5c60460708290818s4d657d69w306467ee7dc582e6@mail.gmail.com>]
[parent not found: <23846340-1188412261-cardhu_decombobulator_blackberry.rim.net-436384448-@bxe018.bisx.prod.on.blackberry>]
* Re: Multi-user and shared directories [not found] ` <23846340-1188412261-cardhu_decombobulator_blackberry.rim.net-436384448-@bxe018.bisx.prod.on.blackberry> @ 2007-08-29 18:41 ` Roberto Bechtlufft 2007-08-29 18:48 ` Frank Cox 0 siblings, 1 reply; 14+ messages in thread From: Roberto Bechtlufft @ 2007-08-29 18:41 UTC (permalink / raw) To: linux-msdos 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? ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Multi-user and shared directories 2007-08-29 18:41 ` Roberto Bechtlufft @ 2007-08-29 18:48 ` Frank Cox 2007-08-30 4:06 ` Roberto Bechtlufft 0 siblings, 1 reply; 14+ messages in thread From: Frank Cox @ 2007-08-29 18:48 UTC (permalink / raw) To: Roberto Bechtlufft; +Cc: linux-msdos On Wed, 29 Aug 2007 15:41:52 -0300 "Roberto Bechtlufft" <robertobech@gmail.com> 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Multi-user and shared directories 2007-08-29 18:48 ` Frank Cox @ 2007-08-30 4:06 ` Roberto Bechtlufft [not found] ` <20070829225309.d960d881.theatre@sasktel.net> 0 siblings, 1 reply; 14+ messages in thread From: Roberto Bechtlufft @ 2007-08-30 4:06 UTC (permalink / raw) To: linux-msdos > 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. ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <20070829225309.d960d881.theatre@sasktel.net>]
* Re: Multi-user and shared directories [not found] ` <20070829225309.d960d881.theatre@sasktel.net> @ 2007-08-30 11:22 ` Roberto Bechtlufft 2007-08-30 20:38 ` Roberto Bechtlufft 0 siblings, 1 reply; 14+ messages in thread From: Roberto Bechtlufft @ 2007-08-30 11:22 UTC (permalink / raw) To: linux-msdos > 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. ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Multi-user and shared directories 2007-08-30 11:22 ` Roberto Bechtlufft @ 2007-08-30 20:38 ` Roberto Bechtlufft 2007-08-30 21:06 ` Frank Cox ` (2 more replies) 0 siblings, 3 replies; 14+ messages in thread From: Roberto Bechtlufft @ 2007-08-30 20:38 UTC (permalink / raw) To: linux-msdos 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? ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Multi-user and shared directories 2007-08-30 20:38 ` Roberto Bechtlufft @ 2007-08-30 21:06 ` Frank Cox 2007-08-30 21:45 ` Frantisek Hanzlik 2007-08-30 21:53 ` Alain M. 2 siblings, 0 replies; 14+ messages in thread From: Frank Cox @ 2007-08-30 21:06 UTC (permalink / raw) To: Roberto Bechtlufft; +Cc: linux-msdos On Thu, 30 Aug 2007 17:38:43 -0300 "Roberto Bechtlufft" <robertobech@gmail.com> 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Multi-user and shared directories 2007-08-30 20:38 ` Roberto Bechtlufft 2007-08-30 21:06 ` Frank Cox @ 2007-08-30 21:45 ` Frantisek Hanzlik 2007-08-30 21:53 ` Alain M. 2 siblings, 0 replies; 14+ messages in thread From: Frantisek Hanzlik @ 2007-08-30 21:45 UTC (permalink / raw) To: Roberto Bechtlufft; +Cc: linux-msdos 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 majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > > !DSPAM:46d728b759371533111866! > ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Multi-user and shared directories 2007-08-30 20:38 ` Roberto Bechtlufft 2007-08-30 21:06 ` Frank Cox 2007-08-30 21:45 ` Frantisek Hanzlik @ 2007-08-30 21:53 ` Alain M. 2007-08-30 23:12 ` Frantisek Hanzlik 2007-08-30 23:24 ` Roberto Bechtlufft 2 siblings, 2 replies; 14+ messages in thread From: Alain M. @ 2007-08-30 21:53 UTC (permalink / raw) To: dosEmu-list 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 majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > > ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Multi-user and shared directories 2007-08-30 21:53 ` Alain M. @ 2007-08-30 23:12 ` Frantisek Hanzlik 2007-08-30 23:24 ` Roberto Bechtlufft 1 sibling, 0 replies; 14+ messages in thread From: Frantisek Hanzlik @ 2007-08-30 23:12 UTC (permalink / raw) To: Alain M.; +Cc: dosEmu-list "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 majordomo@vger.kernel.org >> 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 majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > > !DSPAM:46d73b9562671804284693! > ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Multi-user and shared directories 2007-08-30 21:53 ` Alain M. 2007-08-30 23:12 ` Frantisek Hanzlik @ 2007-08-30 23:24 ` Roberto Bechtlufft 1 sibling, 0 replies; 14+ messages in thread From: Roberto Bechtlufft @ 2007-08-30 23:24 UTC (permalink / raw) To: linux-msdos > 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. ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Multi-user and shared directories 2007-08-29 15:04 Multi-user and shared directories Roberto Bechtlufft 2007-08-29 15:37 ` Frank Cox [not found] ` <1201128185-1188400615-cardhu_decombobulator_blackberry.rim.net-628304760-@bxe018.bisx.prod.on.blackberry> @ 2007-08-30 8:21 ` Frantisek Hanzlik 2 siblings, 0 replies; 14+ messages in thread From: Frantisek Hanzlik @ 2007-08-30 8:21 UTC (permalink / raw) To: linux-msdos 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... > - ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2007-08-30 23:24 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-29 15:04 Multi-user and shared directories Roberto Bechtlufft
2007-08-29 15:37 ` Frank Cox
2007-08-29 15:52 ` Roberto Bechtlufft
[not found] ` <1201128185-1188400615-cardhu_decombobulator_blackberry.rim.net-628304760-@bxe018.bisx.prod.on.blackberry>
[not found] ` <2c5c60460708290818s4d657d69w306467ee7dc582e6@mail.gmail.com>
[not found] ` <23846340-1188412261-cardhu_decombobulator_blackberry.rim.net-436384448-@bxe018.bisx.prod.on.blackberry>
2007-08-29 18:41 ` Roberto Bechtlufft
2007-08-29 18:48 ` Frank Cox
2007-08-30 4:06 ` Roberto Bechtlufft
[not found] ` <20070829225309.d960d881.theatre@sasktel.net>
2007-08-30 11:22 ` Roberto Bechtlufft
2007-08-30 20:38 ` Roberto Bechtlufft
2007-08-30 21:06 ` Frank Cox
2007-08-30 21:45 ` Frantisek Hanzlik
2007-08-30 21:53 ` Alain M.
2007-08-30 23:12 ` Frantisek Hanzlik
2007-08-30 23:24 ` Roberto Bechtlufft
2007-08-30 8:21 ` Frantisek Hanzlik
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox