Koozali.org: home of the SME Server

SME server account policies

chuckt3hnoob

SME server account policies
« on: March 25, 2007, 07:15:23 PM »
Hi as my name suggests i am no a linux guru, so after hearing about sme and reading through the wiki i found it to be exactly what i need.  But after installing and configuring the server to host a learning center for the city of Parlier, I found that i have not seen any way to lock down the user accounts.  I have been working with windows networks since 2000 so I am basing all statements on Windows Active Directory.  

In Windows Active directory i can create a group policy object for each OU and the server.  How would i do things like prevent them from using IE and prevent the last user displaying in the login prompt and shut down the system, also I would like to know if SME's PROXY has a way to block certain web pages (it is a city learning center, so myspace and the like is a waste of bandwidth) and also I want to create a guest account so that new user can log in and see the capabilities of the learning center but with little or no permissions.

and one last thing that i want to ensure is that the homepage of all the students is the same and cannot be changed   please let me know where to do this and where i can find more information because i assure you this is just a taste of what i want to lock down on this network to keep it from it being used in a non education way

thanks for any info

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
SME server account policies
« Reply #1 on: March 25, 2007, 08:09:08 PM »
Ok first thing's first... Did you read the user manual. You should do that to know SME.

Quote
How would i do things like prevent them from using IE and prevent the last user displaying in the login prompt and shut down the system

To prevent them from using IE would be done on windows and has nothing to do with SME. And they can't shut down sme because they would need shell access and they wouldn't have it (again user manual).

To block some webpages.... You would need a contrib called squidguard or dansguardian (search on this forum for both contribs).
You'll find out how to install them when you read the user manual.

Quote
I want to create a guest account so that new user can log in and see the capabilities of the learning center but with little or no permissions.

This would be done trough the lerning center's webpage and has nothing to do with accounts on sme (accounts are for mail and stuff - hint: The manual).

Quote
and one last thing that i want to ensure is that the homepage of all the students is the same and cannot be changed please let me know where to do this and where i can find more information because i assure you this is just a taste of what i want to lock down on this network to keep it from it being used in a non education way

This is done trough windows and not SME.

Quote
I found that i have not seen any way to lock down the user accounts.

If you wan't them to stop using mail you can do that from the server manager (read about it in the manual) and if you wan't to get them of your webpage do that from the webpage's amdin pannel (it's different for every webpage).

And now i'm confused.... Do you need a server (hosting webpages, files and mail) or just a client (browsing internet and checking mail). Because SME is a server distribution and you want something in between.
"It should just work" if it doesn't report it. Thanks!

Offline vincentmeek

  • **
  • 29
  • +0/-0
    • Triple Point Solutions
SME server account policies
« Reply #2 on: March 26, 2007, 03:56:22 AM »
See chapter 26 of Samba manual for Policies  Seach internet for others.

see http://samba.org/samba/docs/man/Samba-HOWTO-Collection/PolicyMgmt.html

Hope it Helps!
Vincent Meek
Network Consultant

chuckt3hnoob

thanks for the reply
« Reply #3 on: March 27, 2007, 03:53:27 AM »
i guess i need to clarify what i was asking, what i was meaning when i asked how to prevent the user from shutting down the system i was not referring to the SME server, I was (and all other questions) to the client machines.  And when i stated that i wanted to "lock down" the user's accounts i was referring to a user logged on to the SME domain and not have permissions to do things like change the screen saver or install active X controls.  all things stated in my first post were after reading the manual, and in the manual it makes not reference to any similar configurations that emulate the Group Policy Object that is in a Windows Active Directory.  Now i am quite fed up with MS and all its CALs so i am turning to open source because of the ability to be a part of something that is actually promoting ideas that make life easier.  I am requesting help to emulate the benefits of using a .NET framework and GPO in active directory using SME

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
SME server account policies
« Reply #4 on: March 27, 2007, 11:46:59 AM »
Well shuting down computers will have to be done trough clients so what will you install on the clients (MS, Linux).
"It should just work" if it doesn't report it. Thanks!

chuckt3hnoob

SME server account policies
« Reply #5 on: March 27, 2007, 04:59:53 PM »
all the computers (because they were purchased by at&t) are running windows XP sp2.  The thing is i know you can set the group policy for like admins only to shut down the system but i want to ensure that any additional users or certain staff have that capability  plus that would require me to go to each machine separately and set the permissions there/  cant sme do this for me as the domain controller?

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
SME server account policies
« Reply #6 on: March 27, 2007, 05:15:45 PM »
No. I see that you don't understand what a domain controler is or what it can do.

Here you go:
http://whatis.techtarget.com/definition/0,289893,sid9_gci283996,00.html

SME can control printers and network, but you'll have to contact microsoft tech support or google if you want to find out how to add user accounts and privileges on xp.
"It should just work" if it doesn't report it. Thanks!

Offline haymann

  • *
  • 212
  • +0/-0
SME server account policies
« Reply #7 on: March 27, 2007, 10:07:42 PM »
I know that Active Directory gives you a lot of group policy options, but as far as I can tell, most of that functionality is not available on SME. I think that you would have to go to every machine to make the policy changes.

For instance at work we have a policy set that will not let users disable automatic updates. The only way to get around that is to change the group policy itself, or add the computer to a special container in AD that was setup for this purpose. I have not seen this type of capability with SME, but I am definitely still at beginner level.
Ryan

Offline Stefano

  • *
  • 10,894
  • +3/-0
SME server account policies
« Reply #8 on: March 27, 2007, 11:04:41 PM »
Quote from: "chuckt3hnoob"
all the computers (because they were purchased by at&t) are running windows XP sp2.  The thing is i know you can set the group policy for like admins only to shut down the system but i want to ensure that any additional users or certain staff have that capability  plus that would require me to go to each machine separately and set the permissions there/  cant sme do this for me as the domain controller?


you already had the answer...

you have to use MS tools..

I use poledit (from w2k resource kit) with last .adm from xp to manage user/pc/group policy; it works smoothly even if it's not AD.

HTH

ciao
Stefano

chuckt3hnoob

SME server account policies
« Reply #9 on: March 28, 2007, 04:16:56 AM »
much thanks to everyone for all the replies.  I am trying the mstool right now and also installing the Berkeley DB. But i am having trouble wiht the DB.  I downloaded the file "db-4.5.20.tar.tar" from the oracle web site and ran the following command "
>tar xvzf db-4.5.20.tar.tar

it extracted all of the files into a new folder inside my current folder (I'm assuming this is normal)

followed by
#cd build_unix
#../dist/configure
#make
#make install

Then i tried to run the ./configure for squidguard and i get the error that it cant find the db.h it tells me to run the command with the following argument --with-db=DIR where DIR is the directory where i installed BerkeleyDB. well the directory that it installed it's self was /usr/local/BerkeleyDB.4.5
and when i enter this i get the same error

I went to the man pages on BerkeleyDB located in /downloads/BerkeleyDB/db-4.4.20.NC/docs/index.html using elinks

on the pages that speaks of "Dynamic shared libraries" I read that i needed to enter the following commands in
#cc -L BUILD_DIRECTORY/.libs -o testprog testprog.o -lbd-.4.5
#envLD_LIBRARY_PATH="BUILD_DIRECTORY/.libs:$LD_LIBRARY_PATH" ./testprog

the man explains that BUILD_DIRECTORY is the location that BerkeleyDB was bult

so i entered this in

#cc -L /usr/local/BerkeleyDB.4.5/.libs -o testprog testprog.o -lbd-.4.5
getting the wonderful feedback as follows
cc: testprog.o: No such file or directory

I go to the web-site for squidguard.org hoping for help, and all it says is "Annotation: Make sure that the shared library of your BerkeleyDB installation is known by your system (check /etc/ld.so.conf). " so using vi i check it.... ok wtf am i looking for again? so here is prob... I dont know if linus knows where it is or not, because i... dont know where to find out what it would say if it did.
so now we get to the part where i am going to hear that i may as well re-install SME... :( so i subsitute the "testprog" with /etc/lb.so.conf
i get feed back that states that one file has been written

then the next command states the same thing again
env: ./testprog: no such file or directory
trying the subsitution:
and it writes it to the env file(.... is this good?, prob not)

trying the ./configure again and same error...:evil:  i have spent the last 3 hours looking at page after page of manuals and i cant find anything relevent i know i am over looking it and I know i don't know jack about linux CLI, i admit i have been using MS products for the last 10 years and i just started with linux a week ago and with only a book on Linux+ cert from Thomson to guide me i am S.O.L.. so pardon my ignorance but i really need assistance

And i know what a domain controller is, i dont know how i keep coming accross as networking ignorant but i am not i have set up 5 windows 2003 active directories in the last year, i know how they work and the root domain controller on the active directory can set the permissions for both the domain GPO and local client machines GPO simply by taking control using a mmc so please help instead of lecturing me on active directory if you know what i am talking about then fill in the blanks otherwise ask questions so i can clarify. And i have seen that SME can do some of the things that active directory can do but not all, but what more can i expect from a OS that is built on a Linux core trying to take control of the closed source MS windows XP pro SP2 machines... things that people had to reverse engineer or come up with clean slate so i am not expecting perfection from SME and i am not afraid to spend a few weeks researching before implementing (i have been planning this for about 2 weeks now) I was always worried when the manual for SME was so cut slate and dry with only instructions on the webpage "server-manager" knowing full well that with any linux distro the true administration happens at the CLI

but please dont think that i am ungrateful for the responses that i have been given I just feel that we should not cover ground that we both know

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
SME server account policies
« Reply #10 on: March 28, 2007, 04:57:43 AM »
Quote from: "chuckt3hnoob"
much thanks to everyone for all the replies.  I am trying the mstool right now and also installing the Berkeley DB.

Hmmm, not sure why you are trying to install Berkley DB....

I do think that you are trying to do some things that you shouldn't as a new user (and I guess you haven't really been given a good start in how to do what you want to do).

First things first, smeserver is NOT an AD controller and won't give you AD policy management. It will act as a Domain Controller (via samba and it's capabilities - as implemented on smeserver) and all the other things noted in the manual.

When squidguard or dansguardian was suggested, they didn't mean to go and compile them from scratch. There are 'contributions' available that will add this fucntionality into your smeserver AND give you a control panel for managing them (via server-manager). These contribs will also load all the required dependencies.

For an overview of 'contributions' etc. look at the Technical Manual - Chapter 6: Adding New Software http://wiki.contribs.org/SME_Server:Documentation:Technical_Manual:Chapter6

For dansguardian I suggest that you look at http://dungog.net/sme/dansguardian.php with instructions on how to install from their repository under the Dowload/Install link (but do look at the Software Summary page as not all of dungog's packages are GPL)

Hope this helps a little
Trevor B

chuckt3hnoob

SME server account policies
« Reply #11 on: March 28, 2007, 06:34:53 AM »
Quote
First things first, smeserver is NOT an AD controller and won't give you AD policy management. It will act as a Domain Controller (via samba and it's capabilities - as implemented on smeserver) and all the other things noted in the manual.



yeah found that out the hard way guess when i initially read the manual for SME i thought i would (in retrospect I think i was filling in the blanks) but i was not aware of anyother way to install the squidguard, when i heard about it from pbivk i went to the web page and read that i needed three things to start and Berkeley DB was one of them, and as you can see i have been having lots of fun with that,

Quote
For an overview of 'contributions' etc. look at the Technical Manual - Chapter 6: Adding New Software http://wiki.contribs.org/SME_Server:Documentation:Technical_Manual:Chapter6


as for that... i knew i was over looking something and my thanks goes to you for reminding me... I read that part but it registered as "how to get updates" instead of upgrades, i used yum to get things like a compiler, bison, and flex.  Thinking that these things were nessasary for adding additional packages to my server.  To be quite blunt this is my first attempt at Linux, i haven't even used it as a home desktop computer becuase my work requires windows for the monitoring of the radios on my wireless network so i have never installed a linux pakage before.  but the dansguard seems a whole-heck-of-a-lot easier than what i was doing before but i will have to try it first thing in the morning, but be sure that i will repost with any additional news

again thanks for the information XD

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
SME server account policies
« Reply #12 on: March 28, 2007, 07:04:16 AM »
Quote from: "chuckt3hnoob"
as you can see i have been having lots of fun with that

We noticed  :D

Quote from: "chuckt3hnoob"
To be quite blunt this is my first attempt at Linux, i haven't even used it as a home desktop computer becuase my work requires windows for the monitoring of the radios on my wireless network so i have never installed a linux pakage before.

And the other problem is that smeserver has isolated most of the control back to the web interface or through a set of database parameters (which allows for seamless upgrades etc.), which is NOT standard linux. So if you just follow 'this is how you do it on Linux' instructions, you will normally find yourself in trouble. Many people have put in the effort to create 'contribs' for applications that make sense for them. You'll find tha there are many contribs beyond the official ones as well.

The sme part of smeserver is for 'Small to Medium Enterprises' where the server admin is just someone in the office, it is not aimed at a fully qualified MSCE. It's not to say smeserver doesn't work in that environment, but that the interface is aimed at that market. To go playing at a highly technical level will require some understanding of the underlying architecture.

I would suggest that you read the developers manual to help you understand how smeserver implements it's configurations and templates. I think this will help you in bridging the knowledge gap.
http://wiki.contribs.org/SME_Server:Documentation:Developers_Manual

Good Luck :-)
Trevor B
PS. For another list of 'official' contribs look at the first item in the SME Server Contribs forum.
For additional items you could do a search through that forum for any particular topic you are looking for (eg. 'block emule').

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
SME server account policies
« Reply #13 on: March 28, 2007, 11:40:20 AM »
Ok one more from me...
You can find squidguard contrib by searching on this forum. And you'll fine some of my posts on how to change default blacklist.

I didn't want to lecture you about AD but this is linux and doesn't have the same features as windows 2003. That was pointed in a few post by me.

And i'm sorry i didn't want to offend you or your knowledge but your first post was written so confusingly that i couldn't know how much you use linux or windows. I tend to forget that here are a lot of new users here that don't know what contrib is and how SME runs. So i'm sorry and i hope that i can be of more use for you in the future.  :D
"It should just work" if it doesn't report it. Thanks!

Offline Stefano

  • *
  • 10,894
  • +3/-0
SME server account policies
« Reply #14 on: March 28, 2007, 05:14:21 PM »