LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-28-2011, 09:25 AM   #1
trojan92
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Rep: Reputation: Disabled
Resetting File Sharing Server Password on Ubuntu


hi there, can anybody help me out on this problem:
someone setup a file sharing server with ubuntu and i cannot get access to login as root and do some modifications for a client.
How can i reset the root/sudo password on this system?

Thanks in advance,
Troj.
 
Old 11-28-2011, 01:17 PM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
There are two methods :

1.Login as single user method and change the user password or root password(if bootloader is not having as password)

Step 1: Power up the machine.
Step 2: When the GRUB boot loader starts, select "e" to edit the configuration. Select the kernel config line. Instead of adding "1 " or "single" to the end of the line aka Red Hat, add this instead:
"init=/bin/bash"
Step 3: Hit "b" to boot the system.
Step 4: When the system boots and brings you to a command prompt, type this command to mount the root file system: " mount / -o remount,rw"
Step 5: Now you can change the password by typing "passwd" followed by your username, then hit enter. Follow the prompts to change the password for your regular username (not root).
Step 6: Unmount the file system: "mount / -o remount,ro"
Step 7: Now type "sync", hit enter, then type "reboot".
Step 8: After your system boots you should find yourself at the login screen, only this time you can log in with your new password!

2.Use rescuse cd/dvd to reset the password
 
Old 11-29-2011, 04:43 PM   #3
mmidgett
LQ Newbie
 
Registered: Aug 2007
Posts: 4

Rep: Reputation: 0
What is the purpose of the command 'sync'?

I just did this for a customer at the colo and I didn't use this command.
 
Old 12-05-2011, 08:27 AM   #4
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Hi,

Entering the sync command, ensures that all data in memory is safely written to disk.

Even if you don't run the command,purpose will be solved.

If your issue is resolved. Please mark it as SOLVED.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure file sharing server in Ubuntu which will be along with Windows vinnie_vinodh Linux - Newbie 2 07-22-2011 01:09 PM
Ubuntu 8.04 / LDAP / NSS / PAM - not sharing shadow password hence not authenticating fuzzyworm Linux - Server 5 01-01-2009 03:29 PM
XP password problem (file sharing with samba on Ubuntu Feisty and Windows XP) AhrenBa Linux - General 5 07-09-2007 08:26 AM
2 samba servers sharing common password file ausmpw Linux - Networking 3 04-04-2005 05:22 PM
File sharing: username and password setup dmg2206 Linux - Networking 2 03-04-2002 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration