LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-29-2012, 12:37 PM   #1
rachana
LQ Newbie
 
Registered: Jul 2012
Posts: 3

Rep: Reputation: Disabled
what could be the reasons when we are unable to ping hostname


what could be the reasons when we are unable to ping hostname
 
Old 07-29-2012, 12:40 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Need a lot more info than that. What kind of setup are you dealing with? Have you added the hostname you're trying to ping to /etc/hosts? Can you ping the IP?
 
1 members found this post helpful.
Old 07-29-2012, 02:06 PM   #3
rachana
LQ Newbie
 
Registered: Jul 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
how can i convert normal user to super user what is the command
 
Old 07-29-2012, 03:20 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
You still haven't said what distribution this is. Either "sudo command" or "su -" to switch to a root shell. Depends on what your setup looks like.
 
Old 07-29-2012, 04:35 PM   #5
KinnowGrower
Member
 
Registered: May 2008
Location: Toronto
Distribution: Centos && Debian
Posts: 347

Rep: Reputation: 34
With Debian, You can add the user to sudoers. As root run the command
Code:
#visudo
It will open the sudoers file. You can add the line starts with "kinnowgrower" to the file as shown below
Code:
# User privilege specification
root    ALL=(ALL) ALL
kinnowgrower ALL=(ALL) ALL
Replace username with kinnowgrower and save the file. Now the user is able to run all the commands as superuser. User have to add word "sudo" to every command .e.g.

sudo vi /etc/passwd

user would be prompted to enter password. User has to enter his regular password

You can add the following command as well.
Code:
kinnowgrower ALL=NOPASSWD:  ALL
The only difference is now user wont be prompted for the password. Be careful while giving root privileges to regular user. Now user has the ability to run all commands on the system including ability to change root password as well. Ofcourse you can limit the user to run specifc commands only using visudo.

get help with

man visudo and www.google.com

Last edited by KinnowGrower; 07-29-2012 at 04:39 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
FC13 install can ping by hostname, ssh by hostname fails jeffk42 Linux - Networking 4 11-14-2011 11:27 AM
unable to ping with hostname s_linux Linux - General 5 07-15-2009 01:01 AM
unable to ping hostname cov Linux - Networking 4 06-19-2008 01:02 PM
Unable to ping hosts by hostname 1337_penguin Linux - Networking 5 08-27-2006 07:37 PM
Unable to ping hostname? robertmarkbram Linux - General 2 11-28-2003 12:06 AM

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

All times are GMT -5. The time now is 01:15 PM.

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