Re: [ilugd] [X-Post] Guest account in Ubuntu 10.04

2010-07-25 Thread Raj Mathur (राज माथुर)
On Saturday 24 Jul 2010, Kartik Singhal wrote:
> [snip]
> What we need though is a method by which we can "reset" the 'user'
> account's home directory at each log in, deleting any traces of the
> previous user's activity and recreates these two icons. I had
> created the script to generate the icons, it can just be integrated
> to the solution of this problem.
> 
> Though the Guest account that does this is available on ubuntu but it
> is only accessible when some other user is logged in and can't be
> accessed from the main login screen.

Not clear how usernames are generated.  Does every user have a fixed ID 
allocated to him/her?  Because if the same username is used by two or 
more people I don't see the difference between the user account and the 
guest account.

In any case, have a look at the postexec parameter in smb.conf.  That 
should allow you to run a script (which can clean out the directory, 
e.g.) whenever a user disconnects from a share.

Regards,

-- Raju
-- 
Raj Mathurr...@kandalaya.org  http://kandalaya.org/
   GPG: 78D4 FC67 367F 40E2 0DD5  0FEF C968 D0EF CC68 D17F
PsyTrance & Chill: http://schizoid.in/   ||   It is the mind that moves

___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] Distributed updates in Ubuntu

2010-07-25 Thread Sagar Belure
On Fri, Jul 23, 2010 at 7:42 PM, Ashish SHUKLA  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA512
>
> Vivek Kapoor writes:
> > On 07/23/2010 06:32 PM, Sagar Belure  wrote:
> >> Please, bear with me, if I'm not able to properly present my
> requirement.
> >>
> >> There are some 32 and 64 bit ubuntu systems in same network.
> >> I want only one system(like, one 32 and one 64 bit systems) to be
> updated
> >> and upgraded on daily basis.
> >> And, rest of the systems, to fetch those updated packages before they go
> >> online and check for new packages.
>
> > From what I have understood, you don't want every machine to download
> > from the Ubuntu repositories, but only one machine should do the
> > task. It'll handle 32bit and 64bit without any issues. Use one of the
> > following
>
> > apt-proxy, apt-cacher, apt-cacher-ng, approx
>
> > I started with apt-cacher and faced update issues in long term use, so
> > I moved to approx and was happy with it, but newer version presented a
> > bit difficulty in the sense that it didn't run its own daemon. So I
> > moved onto apt-cacher-ng which has been working well for quite some
> > time now.
>
> I also used apt-cacher in past and it worked but recent versions had some
> issues, so I kept the old version pinned on my Debian box.
>
> I also tried pkg-cacher[1] because I needed to cache for 'yum'
> (fedora/centos)
> also and it worked great since it can cache both 'yum' and 'apt'.
>
> References:
> [1]  http://gforge.opensource-sw.net/gf/project/pkg_cacher/frs/
>
> HTH
>

Thank you all for your responses.
I got options to look into and your views and experience is really valuable.

-- 
Thanks,
Sagar Belure
Security Analyst
Secfence Technologies
www.secfence.com
___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] [X-POST] Guest account in Ubuntu 10.04

2010-07-25 Thread jeet7668 .
Well I think the following can help you out.

1) for having a guest account simply create a account with any name
(probably guest) that will never ask for password at login so you don't have
to tell the password to everyone (if u want that account to be for public
use)

2) for resetting home directories of users, you should put all your  files
(which u want to be there in the home directory at every login) at some
different place and write a small bash/perl script to place them in user's
home directory at every login after deleting whatever was there in user's
home directory.

Do let me know whether this was useful or useless.



On Sat, Jul 24, 2010 at 9:29 PM, Kartik Singhal wrote:

> We are setting up a lab in our computer center for encouraging students to
> use linux. We are already done with setting up Ubuntu 10.04 32-bit on most
> of the systems. What we have planned is to give a common underprivileged
> 'user' account in all the systems with same password that we can tell the
> users. Users have the advantage of using their flash drives which they were
> not allowed to use on windows systems because of viruses.
>
> The problem of common storage is being taken into account by having a
> central storage server running samba. It is available in the form of two
> icons on the desktop:
> 1. Public-Share-on-Ubuntu-Server (which is publicly accessible by everyone
> and is permanently mounted on the client as a /etc/fstab entry)
> 2. Access-Private-Share-on-
> Ubuntu-Server (which is private to a particular user)
>
> The second icon is just a shortcut to the following script which allows
> users to access their private files after requesting (only on first usage)
> for a user name from one of the lab assistants:
>
> #!/bin/bash
> > echo 'Enter your username: '
> > read un
> > nautilus smb://192.168.5.82/$un/
> >
>
> What we need though is a method by which we can "reset" the 'user'
> account's
> home directory at each log in, deleting any traces of the previous user's
> activity and recreates these two icons. I had created the script to
> generate
> the icons, it can just be integrated to the solution of this problem.
>
> Though the Guest account that does this is available on ubuntu but it is
> only accessible when some other user is logged in and can't be accessed
> from
> the main login screen.
>
> The following was taken from ubuntuforums (
> http://ubuntuforums.org/showthread.php?t=1024371)
>
> > Imagine the scenario:
> >
> > A library patron logs on to check his email, surf the web, then downloads
> a
> > photo from his camera and puts it in a document that he then saves to a
> > thumb drive. He logs off and leaves. We don't want the next patron that
> uses
> > that machine to "see" any of the things previous users did, where they
> went
> > or documents they worked on.
> >
> > I don't mind the idea of a user account that has a password, we could
> give
> > that out when the patron signs in, heck we could even change it once in a
> > while. However, lock down of the account and deletion of previous user
> > activity is of most importance.
> >
>
> Our requirement is similar. After a lot of searching on the net I have not
> been able to find a way to do this.
>
> If you have done any similar lab scenario, please share the method on the
> list. It would be a great help.
>
>
> --
> Kartik Singhal
> BTech CSE Student, NIT Calicut
> http://www.techglider.com
> ___
> Ilugd mailing list
> Ilugd@lists.linux-delhi.org
> http://frodo.hserus.net/mailman/listinfo/ilugd
>



-- 
Martin Anderson
___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] [X-Post] Guest account in Ubuntu 10.04

2010-07-25 Thread jeet7668 .
Well I think the following can help you out.

1) for having a guest account simply create a account with any name
(probably guest) that will never ask for password at login so you don't have
to tell the password to everyone (if u want that account to be for public
use)

2) for resetting home directories of users, you should put all your  files
(which u want to be there in the home directory at every login) at some
different place and write a small bash/perl script to place them in user's
home directory at every login after deleting whatever was there in user's
home directory.

Do let me know whether this was useful or useless.



On Sat, Jul 24, 2010 at 8:10 PM, Kartik Singhal wrote:

> We are setting up a lab in our computer center for encouraging students to
> use linux. We are already done with setting up Ubuntu 10.04 32-bit on most
> of the systems. What we have planned is to give a common underprivileged
> 'user' account in all the systems with same password that we can tell the
> users. Users have the advantage of using their flash drives which they were
> not allowed to use on windows systems because of viruses.
>
> The problem of common storage is being taken into account by having a
> central storage server running samba. It is available in the form of two
> icons on the desktop:
> 1. Public-Share-on-Ubuntu-Server (which is publicly accessible by everyone
> and is permanently mounted on the client as a /etc/fstab entry)
> 2. Access-Private-Share-on-Ubuntu-Server (which is private to a particular
> user)
>
> The second icon is just a shortcut to the following script which allows
> users to access their private files after requesting (only on first usage)
> for a user name from one of the lab assistants:
>
> #!/bin/bash
> > echo 'Enter your username: '
> > read un
> > nautilus smb://192.168.5.82/$un/
> >
>
> What we need though is a method by which we can "reset" the 'user'
> account's
> home directory at each log in, deleting any traces of the previous user's
> activity and recreates these two icons. I had created the script to
> generate
> the icons, it can just be integrated to the solution of this problem.
>
> Though the Guest account that does this is available on ubuntu but it is
> only accessible when some other user is logged in and can't be accessed
> from
> the main login screen.
>
> The following was taken from ubuntuforums (
> http://ubuntuforums.org/showthread.php?t=1024371)
>
> > Imagine the scenario:
> >
> > A library patron logs on to check his email, surf the web, then downloads
> a
> > photo from his camera and puts it in a document that he then saves to a
> > thumb drive. He logs off and leaves. We don't want the next patron that
> uses
> > that machine to "see" any of the things previous users did, where they
> went
> > or documents they worked on.
> >
> > I don't mind the idea of a user account that has a password, we could
> give
> > that out when the patron signs in, heck we could even change it once in a
> > while. However, lock down of the account and deletion of previous user
> > activity is of most importance.
> >
>
> Our requirement is similar. After a lot of searching on the net I have not
> been able to find a way to do this.
>
> If you have done any similar lab scenario, please share the method on the
> list. It would be a great help.
>
>
> --
> Kartik Singhal
> BTech CSE Student, NIT Calicut
> http://www.techglider.com
> ___
> Ilugd mailing list
> Ilugd@lists.linux-delhi.org
> http://frodo.hserus.net/mailman/listinfo/ilugd
>



-- 
Martin Anderson
___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd