LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-13-2003, 03:50 AM   #1
ronss
Member
 
Registered: Mar 2002
Location: phoenix,az
Distribution: red hat linux enterprise-centos
Posts: 766

Rep: Reputation: 31
kwrite permission


hi.

i am trying to add a couple of lines here-
etc/apt/source files

i type the stuff in that i want added,using kwrite, but i cannot save, permission denied. how do i get permission using kwrite to type the 2 lines in /etc/apt/source file, and then be able to save it
 
Old 09-13-2003, 05:12 AM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
It depends on who owns the file and what the permissions are. You may have to be root in order to write to that file.
 
Old 09-13-2003, 05:18 AM   #3
ronss
Member
 
Registered: Mar 2002
Location: phoenix,az
Distribution: red hat linux enterprise-centos
Posts: 766

Original Poster
Rep: Reputation: 31
the file is in the root directory-etc-apt-sources.list

i want to add a couple of url,s there, so i can use the apt-get install xine , to download from the urls.

everything goes fine until i save, no permission-

i was thinking it could be something like this, or i may way off-

# chmod u+x /root/etc/apt/sources.list/Kwrite

i know that the chmod command gives certain permissions,, this is sort of new to me,
 
Old 09-13-2003, 05:20 AM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Yeah well actually it has everything to do with permissions. Just because you can READ a file doesn't mean you have the permsission to WRITE to the file.

Have you tried editing the file as root?
 
Old 09-13-2003, 05:33 AM   #5
ronss
Member
 
Registered: Mar 2002
Location: phoenix,az
Distribution: red hat linux enterprise-centos
Posts: 766

Original Poster
Rep: Reputation: 31
when i click on sourceslist, it opens, bunch of files in there with file tranfer url,s. i can read most of my files in the directory, but i have trouble typing things in there and saving. even cutting and pasting, i need permission to do this also.actually, i need the permission to save it.i am trying to figure out how to get permission using kwrite to add 2 lines to the sourceslist, and then save.

how do i get the permission to write in the sources list
/root directory/etc/apt/sources list

if i can figure this out, then i can proceed with my install of xine dvd player

thanks
 
Old 09-13-2003, 05:41 AM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
open a console
type su
type root password
type kwrite
when kwrite opens, browse to the file, open it and edit it.
 
Old 09-13-2003, 07:07 AM   #7
ronss
Member
 
Registered: Mar 2002
Location: phoenix,az
Distribution: red hat linux enterprise-centos
Posts: 766

Original Poster
Rep: Reputation: 31
xavierP

tryed your suggestion, get an error-cannot connect to server! probably going to have to install manually, instead of apt-get i quess
 
Old 09-13-2003, 07:17 AM   #8
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
What is the source? Maybe it needs rewriting, or there isn't an apt enabled repository there.
 
Old 09-13-2003, 07:57 AM   #9
ronss
Member
 
Registered: Mar 2002
Location: phoenix,az
Distribution: red hat linux enterprise-centos
Posts: 766

Original Poster
Rep: Reputation: 31
source-
http://forum.libranet.com/


go to help please-author ronss-xine and libranent 2.81.,utecs thread , the second one in the posting.

Last edited by ronss; 09-13-2003 at 08:02 AM.
 
Old 09-13-2003, 08:23 AM   #10
ronss
Member
 
Registered: Mar 2002
Location: phoenix,az
Distribution: red hat linux enterprise-centos
Posts: 766

Original Poster
Rep: Reputation: 31
where is kwrite in the root directory, if i can find the folder, maybe i can click on properties, and change the permission
 
Old 09-13-2003, 10:34 AM   #11
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
You don't need to edit the properties of kwrite -
su enables you to run programs with root permissions. I suggested kwrite simply as a text editor to allow you to edit the file.
 
  


Reply



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
kwrite broke my desktop Teckno Slackware 5 02-09-2006 02:26 AM
Anything similar to KDevelop/Kwrite mohbana Programming 3 11-25-2004 02:03 PM
KWrite problem totti10 Linux - Software 2 10-31-2004 02:30 PM
how to get a compiler for kwrite red_deb Programming 1 02-23-2004 06:33 AM
Kwrite And My Crazy Printer petercool Linux - Software 1 08-16-2003 10:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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