Ok i have fix the problems.
Go to /etc/ebox and open 80samba.conf

Change /bin/false to /bain/bash and it works


// Matte
----- Ursprungligt meddelande -----
Från: "Mattias Hemmingsson" <[email protected]>
Till: "eBox users" <[email protected]>
Skickat: torsdag, 14 jan 2010 11:05:06
Ämne: Re: [ebox-user] /bin/bash

hi 

I change as suggestsed by adding this line ('loginShell      => '/bin/bash',= 
but the ebox crached when reloded the page.
I have some ltsp server and are now managering the users in the ebox ldap.
But the problem is that i have to change the /bin/bash manuell every time i 
create a now user.

// Matte





----- Ursprungligt meddelande -----
Från: "Javier Amor Garcia" <[email protected]>
Till: "eBox users" <[email protected]>
Skickat: måndag, 4 jan 2010 12:11:54
Ämne: Re: [ebox-user] /bin/bash

Hi Mattias,

In case you want to allow your ldap suers to login in the box, vias ssh, 
as normal users look this howto:
http://trac.ebox-platform.com/wiki/Document/HowTo/SSHLoginAsEBoxUser


If you need the loginShell in LDAP for other purposes, you must edit the 
file /usr/share/perl5/EBox/UsersAndGroups.pm

Look for the method 'addUser'. (Do a search for 'sub addUser')

At the end of the method there is a list of LDAP attributes for the same 
user. In my version it looks like that:

     my @attr =  (
         'cn'            => $user->{'fullname'},
         'uid'           => $user->{'user'},
         'sn'            => $user->{'surname'},
         'uidNumber'     => $uid,
         'gidNumber'     => $gid,
         'homeDirectory' => HOMEPATH,
         'userPassword'  => $passwd,
         'objectclass'   => ['inetOrgPerson', 'posixAccount', 
'passwordHolder'],
         @additionalPasswords
     );


Add the 'loginShell' attribute. Again in my version, it will lokk like this:

     my @attr =  (
         'cn'            => $user->{'fullname'},
         'uid'           => $user->{'user'},
         'sn'            => $user->{'surname'},
         'uidNumber'     => $uid,
         'gidNumber'     => $gid,
         'homeDirectory' => HOMEPATH,
         'userPassword'  => $passwd,
         'loginShell      => '/bin/bash',  # <--- added line
         'objectclass'   => ['inetOrgPerson', 'posixAccount', 
'passwordHolder'],
         @additionalPasswords
     );


Then restart the ebox web server to assure that older version of the 
file arent cached:
'/etc/init.d/ebox apache restart'.


Anyway, if do you want to allow regualr login by users, there are the 
instruciton

cheers,
   Javier


Mattias Hemmingsson wrote:
> Hi
> 
> I have set upp my ldap server to be used as loggin to my ubuntu server.
> But when i create users in ldap they are given /bin/false as defult.
> 
> Is there any whay a can change this so that my users gets /bin/bash instead ?
> 
> 
> // Mattias
> _______________________________________________
> ebox-user mailing list
> [email protected]
> http://lists.ebox-platform.com/cgi-bin/mailman/listinfo/ebox-user

_______________________________________________
ebox-user mailing list
[email protected]
http://lists.ebox-platform.com/cgi-bin/mailman/listinfo/ebox-user
_______________________________________________
ebox-user mailing list
[email protected]
http://lists.ebox-platform.com/cgi-bin/mailman/listinfo/ebox-user
_______________________________________________
ebox-user mailing list
[email protected]
http://lists.ebox-platform.com/cgi-bin/mailman/listinfo/ebox-user

Reply via email to