LinuxQuestions.org
Visit Jeremy's Blog.
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 06-14-2013, 03:41 PM   #1
m374
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
Code:
su -l
- or
Code:
 su -l-
i"m getting
Code:
-bash-4.2#
instead of
Code:
 [root@cooper ~]#.
2.whenever I tries to switch in superuser mode through
Code:
sudo -i
the terminal directly gives me
Code:
-bash-4.2#,
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 03:44 PM.
 
Old 06-14-2013, 04:45 PM   #2
mddnix
Member
 
Registered: Mar 2013
Location: Bangalore, India
Distribution: Redhat, Arch, Ubuntu
Posts: 512

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

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

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

the two normal ways is to do this
Code:
su
---- your root password ---
that KEEPS you in the same folder BUT with your normal user $PATH
Code:
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, 08:57 AM   #4
unclesamcrazy
Member
 
Registered: May 2013
Posts: 187

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


Reply

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


All times are GMT -5. The time now is 10:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration