Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

/Root / .profile access denied .....


  • Please log in to reply
6 replies to this topic

#1 m_sabbir

m_sabbir

  • Members
  • 43 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:03:33 PM

Posted 22 April 2018 - 05:28 AM

I am tried to edit root profile but could not for permission denied .
out put is :

-bash: /root/ .profile: permission denied

Any Experts Please Help Me! !

BC AdBot (Login to Remove)

 


#2 Mike_Walsh

Mike_Walsh

    Bleepin' 'Puppy' nut..!!


  • Members
  • 1,412 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:King's Lynn, UK
  • Local time:10:33 AM

Posted 22 April 2018 - 08:28 AM

Probably because you've attempted to run your chosen text editor as a normal user. You need to open it as /root, via the use of 'sudo' (or 'gksudo', which is reckoned to be safer).....and then you can access the requisite file you wish to edit.

 

i.e.,

 

sudo nano, or

sudo vim, or

sudo geany, or

sudo leafpad, etc.....whatever the name of your editor happens to be.

 

Don't forget to save it immediately after you've finished editing, and before you exit!

 

 

Mike.  :wink:


Edited by Mike_Walsh, 23 April 2018 - 03:57 AM.

Distros:- Multiple 'Puppies'..... and Anti-X 16.1

My Puppy BLOG ~~~  My Puppy PACKAGES

Compaq Presario SR1916UK; Athlon64 X2 3800+, 3 GB RAM, WD 500GB Caviar 'Blue', 32GB Kingspec PATA SSD, 3 TB Seagate 'Expansion' external HDD, ATI Radeon Xpress 200 graphics, Dell 15.1" pNp monitor (1024 x 768), TP-Link PCI-e USB 3.0 card, Logitech c920 HD Pro webcam, self-powered 7-port USB 2.0 hub

Dell Inspiron 1100; 2.6 GHz 400FSB P4, 1.5 GB RAM, 64GB KingSpec IDE SSD, Intel 'Extreme' graphics, 1 TB Seagate 'Expansion' external HDD, M$ HD-3000 'Lifecam'.

 

KXhaWqy.gifFQ8nrJ3.gif

 

 


#3 MadmanRB

MadmanRB

    Spoon!!!!


  • Members
  • 3,222 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:No time for that when there is evil afoot!
  • Local time:05:33 AM

Posted 22 April 2018 - 10:10 AM

Word of warning: never ever ever run as root, not even under pain of death do it.

Also dont edit root files too


You know you want me baby!

Proud Linux user and dual booter.

Proud Vivaldi user.

 

xu847p-6.png


#4 m_sabbir

m_sabbir
  • Topic Starter

  • Members
  • 43 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:03:33 PM

Posted 22 April 2018 - 12:51 PM

Dear Mike,
I am Tried by using root user.
And this error showing my debien 8.
when i try to log in X2go client by my windows pc . its came a poop up which is
stdin: is not a tty/root/ .profile

And i find in a forum its fix by edited file of root/ .profile

#5 m_sabbir

m_sabbir
  • Topic Starter

  • Members
  • 43 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:03:33 PM

Posted 22 April 2018 - 12:54 PM

Dear mad,
Thanks For your good advice. But i need to log my remote pc ( debian 8)which is in uk.

Xrdp not work smoothly.

#6 mremski

mremski

  • Members
  • 498 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:NH
  • Local time:05:33 AM

Posted 23 April 2018 - 02:38 AM

Word of warning: never ever ever run as root, not even under pain of death do it.

Also dont edit root files too

 

A touch over dramatic, no?  Really, "...under pain of death". 

 

OP, your problem is you are trying to remote desktop into a debian pc from a windows machine?

Xrdp is not working smoothly (what does this mean, not work at all or it works but....)

so you are trying another client on the windows box?

Make sure your Windows client is not trying to log in as root;  it should log in as your regular user.

 

Be careful about just applying "fixes" found on the internet. 

What did you find in the forum about editing the .profile?  Just cut and paste the commands or the what you are

supposed to be adding to .profile


FreeBSD since 3.3, only time I touch Windows is to fix my wife's computer


#7 fyshstyx

fyshstyx

  • Members
  • 22 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Appleton, WI
  • Local time:04:33 AM

Posted 25 April 2018 - 03:03 PM

The RDP server setup on the remote Debian computer might not allow root to do certain things it is usually able to do if you were not remotely controlling the computer as root. This is usually a security implementation to stop crackers from being able to do much damage without a second exploit, if there is a vulnerability that allows it. I am not saying this is the exact problem, but if you want to allow root to have full control remotely (not recommended!), then change the configuration for the server program when you can locally access it.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users