FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor


 
 
LinkBack Thread Tools
 
Old 02-13-2009, 09:01 PM
Rob Crittenden
 
Default Password

Per Qvindesland wrote:
Hi


Thanks for replying, i will try but could you please give me a clue on where
I might find this file?

Kind regards
Per Qvindesland


On 2/13/09 10:30 PM, "Rob Crittenden" <rcritten@redhat.com> wrote:


You can put this just about anywhere in there, I'd put it around where
we check for and set homeDirectory, etc.




I think the change should look something like (untested):

diff --git a/ipa-server/xmlrpc-server/funcs.py
b/ipa-server/xmlrpc-server/funcs.

index cf9e7de..d5bbab2 100644
--- a/ipa-server/xmlrpc-server/funcs.py
+++ b/ipa-server/xmlrpc-server/funcs.py
@@ -623,6 +623,9 @@ class IPAServer:
if user.get('gn'):
del user['gn']

+ if not user.get('userpassword'):
+ user['userpassword'] = user['uid']
+
# some required objectclasses
entry.setValues('objectClass',
(config.get('ipauserobjectclasses')))


On an installed system this is in
/usr/lib/python2.5/site-packages/ipaserver/funcs.py


rob

--
Fedora-directory-users mailing list
Fedora-directory-users@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-directory-users
 
Old 02-13-2009, 09:22 PM
Per Qvindesland
 
Default Password

Awesome thanks a million.

Regards
Per Qvindesland


On 2/13/09 11:01 PM, "Rob Crittenden" <rcritten@redhat.com> wrote:

> Per Qvindesland wrote:
>> Hi
>>
>> Thanks for replying, i will try but could you please give me a clue on where
>> I might find this file?
>>
>> Kind regards
>> Per Qvindesland
>>
>>
>> On 2/13/09 10:30 PM, "Rob Crittenden" <rcritten@redhat.com> wrote:
>>
>>> You can put this just about anywhere in there, I'd put it around where
>>> we check for and set homeDirectory, etc.
>>
>
> I think the change should look something like (untested):
>
> diff --git a/ipa-server/xmlrpc-server/funcs.py
> b/ipa-server/xmlrpc-server/funcs.
> index cf9e7de..d5bbab2 100644
> --- a/ipa-server/xmlrpc-server/funcs.py
> +++ b/ipa-server/xmlrpc-server/funcs.py
> @@ -623,6 +623,9 @@ class IPAServer:
> if user.get('gn'):
> del user['gn']
>
> + if not user.get('userpassword'):
> + user['userpassword'] = user['uid']
> +
> # some required objectclasses
> entry.setValues('objectClass',
> (config.get('ipauserobjectclasses')))
>
> On an installed system this is in
> /usr/lib/python2.5/site-packages/ipaserver/funcs.py
>
> rob
>
> --
> Fedora-directory-users mailing list
> Fedora-directory-users@redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-directory-users


--
Fedora-directory-users mailing list
Fedora-directory-users@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-directory-users
 
Old 03-22-2009, 04:31 PM
Per Qvindesland
 
Default Password

Hi

I am finally ready to move on with the implementation of my directory server
and I would like to have implemented this solution so that it automatically
adds in the username as the default password for all new users, I have been
trying to figure out this through this script but it is referring to
ipa-server which is not something that I have installed, is there anywhere
else or is there any other way of doing this?

Regards
Per Qvindesland


On 2/13/09 11:01 PM, "Rob Crittenden" <rcritten@redhat.com> wrote:

> Per Qvindesland wrote:
>> Hi
>>
>> Thanks for replying, i will try but could you please give me a clue on where
>> I might find this file?
>>
>> Kind regards
>> Per Qvindesland
>>
>>
>> On 2/13/09 10:30 PM, "Rob Crittenden" <rcritten@redhat.com> wrote:
>>
>>> You can put this just about anywhere in there, I'd put it around where
>>> we check for and set homeDirectory, etc.
>>
>
> I think the change should look something like (untested):
>
> diff --git a/ipa-server/xmlrpc-server/funcs.py
> b/ipa-server/xmlrpc-server/funcs.
> index cf9e7de..d5bbab2 100644
> --- a/ipa-server/xmlrpc-server/funcs.py
> +++ b/ipa-server/xmlrpc-server/funcs.py
> @@ -623,6 +623,9 @@ class IPAServer:
> if user.get('gn'):
> del user['gn']
>
> + if not user.get('userpassword'):
> + user['userpassword'] = user['uid']
> +
> # some required objectclasses
> entry.setValues('objectClass',
> (config.get('ipauserobjectclasses')))
>
> On an installed system this is in
> /usr/lib/python2.5/site-packages/ipaserver/funcs.py
>
> rob
>
> --
> Fedora-directory-users mailing list
> Fedora-directory-users@redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-directory-users


--
Fedora-directory-users mailing list
Fedora-directory-users@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-directory-users
 
Old 10-14-2010, 03:54 AM
Jitender Kiraria
 
Default Password

I have forgotten Password to my Ubuntu 8.0 system........Is there any way to login or restore the password.......Please Someone help me !!!!!!!!!!! Otherwise I will have to format the system........Thanx.......

--
Jitu
9034317617

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 10-14-2010, 04:06 AM
Basil Chupin
 
Default Password

On 14/10/2010 14:54, Jitender Kiraria wrote:
> I have forgotten Password to my Ubuntu 8.0 system........Is there any
> way to login or restore the password.......Please Someone help me
> !!!!!!!!!!! Otherwise I will have to format the system........Thanx.......
>
> --
> Jitu
> 9034317617

Don't panic! There is a way to do it - I'm looking for the reference
now. No need to reformat.

BC

--
There comes a time in the affairs of a man when he has to take the bull by the tail and face the situation.
W C Fields


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 10-14-2010, 04:06 AM
Steve Grace
 
Default Password

On 10/13/2010 08:54 PM, Jitender Kiraria wrote:
> I have forgotten Password to my Ubuntu 8.0 system........Is there any
> way to login or restore the password.......Please Someone help me
> !!!!!!!!!!! Otherwise I will have to format the system........Thanx.......

I believe these are the steps (from memory):

* Restart your computer
* If you don't normally see the GRUB menu, hold the Shift key down until
the menu appears
* Select the "recovery mode" option
* When asked for a what you want to do, choose a root shell
* At the # prompt, enter:

passwd your_user_name_here (for example, passwd jitu)

* When prompted, enter your new password
* At the # prompt, enter:

exit

You should then be all set. Good luck!

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 10-14-2010, 04:11 AM
Basil Chupin
 
Default Password

On 14/10/2010 15:06, Steve Grace wrote:
> On 10/13/2010 08:54 PM, Jitender Kiraria wrote:
>
>> I have forgotten Password to my Ubuntu 8.0 system........Is there any
>> way to login or restore the password.......Please Someone help me
>> !!!!!!!!!!! Otherwise I will have to format the system........Thanx.......
>>
> I believe these are the steps (from memory):
>
> * Restart your computer
> * If you don't normally see the GRUB menu, hold the Shift key down until
> the menu appears
> * Select the "recovery mode" option
> * When asked for a what you want to do, choose a root shell
> * At the # prompt, enter:
>
> passwd your_user_name_here (for example, passwd jitu)
>
> * When prompted, enter your new password
> * At the # prompt, enter:
>
> exit
>
> You should then be all set. Good luck!
>

Probably the same thing but ESC is mentioned and not SHIFT- although I
do think that SHIFT applies to latest versions but may be wrong. What I
was looking for is this:

https://answers.launchpad.net/ubuntu/+question/3039

BC

--
There comes a time in the affairs of a man when he has to take the bull by the tail and face the situation.
W C Fields


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 10-14-2010, 04:40 AM
Steve Grace
 
Default Password

On 10/13/2010 09:11 PM, Basil Chupin wrote:
> On 14/10/2010 15:06, Steve Grace wrote:
>> On 10/13/2010 08:54 PM, Jitender Kiraria wrote:
>>
>>> I have forgotten Password to my Ubuntu 8.0 system........Is there any
>>> way to login or restore the password.......Please Someone help me
>>> !!!!!!!!!!! Otherwise I will have to format the system........Thanx.......
>>>
>> I believe these are the steps (from memory):
>>
>> * Restart your computer
>> * If you don't normally see the GRUB menu, hold the Shift key down until
>> the menu appears
>> * Select the "recovery mode" option
>> * When asked for a what you want to do, choose a root shell
>> * At the # prompt, enter:
>>
>> passwd your_user_name_here (for example, passwd jitu)
>>
>> * When prompted, enter your new password
>> * At the # prompt, enter:
>>
>> exit
>>
>> You should then be all set. Good luck!
>>
>
> Probably the same thing but ESC is mentioned and not SHIFT- although I
> do think that SHIFT applies to latest versions but may be wrong. What I
> was looking for is this:
>
> https://answers.launchpad.net/ubuntu/+question/3039

Basil, you're probably right. It's Shift now but is probably ESC for
version 8.xx that Jitu has.

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 10-14-2010, 04:44 AM
Thierry de Coulon
 
Default Password

On Thursday 14 October 2010, Jitender Kiraria wrote:
> I have forgotten Password to my Ubuntu 8.0 system........Is there any way
> to login or restore the password.......Please Someone help me !!!!!!!!!!!
> Otherwise I will have to format the system........Thanx.......

You can boot from a live CD, mount your root partition and delete the passowrd
the /etc/shadow (delete the part between the first and the second ":").

Then you log in without password and create a new one

Thierry

--
"We live at a time when emotions and feelings count more than truth, an there
is a vast ignorance of science" James Lovelock


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 10-14-2010, 05:15 AM
Basil Chupin
 
Default Password

On 14/10/2010 14:54, Jitender Kiraria wrote:
> I have forgotten Password to my Ubuntu 8.0 system........Is there any
> way to login or restore the password.......Please Someone help me
> !!!!!!!!!!! Otherwise I will have to format the system........Thanx.......
>
> --
> Jitu
> 9034317617


By the way, Jitender, the answers you received about how to solve your
problem also spell out that your system - or anyone's system - is not
safe just because you have provided a password to logon to your system.

If your computer is stolen then anyone knowing the answers you have been
given can get inside your system. Or, of course, if you allow someone to
access your computer without your presence, the same thing....

Which is why there is the recommendation that you encrypt your installation.

For your information.

BC

--
There comes a time in the affairs of a man when he has to take the bull by the tail and face the situation.
W C Fields


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 07:53 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org