Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-14-2013, 02:41 PM   #1
LQ Newbie
Registered: Mar 2012
Posts: 3

Rep: Reputation: Disabled
Question Problem with bash in fedora 18

I switched from Ubuntu to fedora two months ago.Everything was fine until in last two or three days I'm start facing a series of problems .

1.whenever I tries to switch from normal user through
su -l
- or
 su -l-
i"m getting
instead of
 [root@cooper ~]#.
2.whenever I tries to switch in superuser mode through
sudo -i
the terminal directly gives me
without asking a password.

3.The root user is unable to change the permission on any file even created by the normal users.It shows permission denied whenever I tries to run any scripts created by the normal user.

I tried to move the content of /etc/skel to bashrc of root but nothing happens.

Last edited by m374; 06-14-2013 at 02:44 PM.
Old 06-14-2013, 03:45 PM   #2
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 525

Rep: Reputation: 141Reputation: 141
Show output of following commands

$ grep 'root' /etc/passwd
$ ls -ld /root
Old 06-14-2013, 06:42 PM   #3
John VV
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,189

Rep: Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507
as you know fedora by default dose not use sudo

the two normal ways is to do this
---- your root password ---
that KEEPS you in the same folder BUT with your normal user $PATH
su -
---- your root password ---
this moves you to the ROOT home folder with the full root $PATH

fedora uses two different $PATH
one for the normal users and a different setting for root
Old 06-15-2013, 07:57 AM   #4
Registered: May 2013
Posts: 189

Rep: Reputation: 1
what is the permission of your home directory?
is it 775 or 755?


bashrc, fedora18, root login

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
[SOLVED] Bash Script Help/Fedora 15 DaverR Linux - Newbie 10 04-27-2012 11:45 PM
Bash problem : -bash: [: /bin/bash: unary operator expected J.A.X Linux - Software 1 09-22-2011 05:52 AM
[SOLVED] bash : getopts problem in bash script. angel115 Programming 2 03-02-2009 10:53 AM
Reading a bash variable in bash scripting problem freeindy Programming 3 11-27-2008 02:29 AM
-bash: Error on Fedora 1 dr_angus Linux - Newbie 1 03-24-2005 06:13 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:18 PM.

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