LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-12-2011, 12:26 AM   #1
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Rep: Reputation: Disabled
Permission Denied When Creating File


I am trying to create:


/etc/X11/Xsession.d/95xinput document
where
/etc/X11/Xsession.d is a folder.

so I enter the above commands:

cd /etc/X11/Xsession.d
nano 95xinput

I type my text and when I try to save it it says that permission is denied. wad shld I do?
 
Old 07-12-2011, 12:29 AM   #2
0men
Member
 
Registered: Mar 2011
Location: Gold Coast, Australia
Distribution: saline, centos, freeBSD, slackware
Posts: 182

Rep: Reputation: 22
Are you logged in as root?

If not, try sudo nano instead.

Last edited by 0men; 07-12-2011 at 12:33 AM.
 
Old 07-12-2011, 12:34 AM   #3
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Original Poster
Rep: Reputation: Disabled
How do you log in as root?
 
Old 07-12-2011, 12:37 AM   #4
0men
Member
 
Registered: Mar 2011
Location: Gold Coast, Australia
Distribution: saline, centos, freeBSD, slackware
Posts: 182

Rep: Reputation: 22
Open a terminal and then type

su

It will then ask for your root password youll see the terminal change from a $ to a #
 
Old 07-12-2011, 12:47 AM   #5
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Original Poster
Rep: Reputation: Disabled
Hi

may I know what is the root passwd?
 
Old 07-12-2011, 12:54 AM   #6
0men
Member
 
Registered: Mar 2011
Location: Gold Coast, Australia
Distribution: saline, centos, freeBSD, slackware
Posts: 182

Rep: Reputation: 22
I think im getting owned by a troll here :P

..............If not and your really new to linux, read these links and they will get you started.

https://help.ubuntu.com/community/RootSudo
https://help.ubuntu.com/community/UsingTheTerminal

Good luck
 
Old 07-12-2011, 01:44 AM   #7
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Original Poster
Rep: Reputation: Disabled
sudo -i solves it
 
  


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
Permission denied when creating a symbolic link? Ubuntonian Linux - Software 1 12-20-2010 10:48 AM
permission denied to move a file? trnz$mr Slackware 3 06-05-2009 01:18 PM
corrupt file Permission denied emetib Debian 4 04-20-2008 08:12 AM
permission denied error creating POSIX semaphores Mish Linux - Newbie 2 09-28-2006 09:16 PM
ln: creating symbolic link `/dev/dvd' to `/dev/hdc': Permission denied qazwsx27 Fedora 3 06-14-2005 03:09 PM


All times are GMT -5. The time now is 01:46 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