General :: Editing A File As Root In Debian

Mar 16, 2010

But any changes I make cannot be saved unless I'm in root. I might be doing this wrong, but I cannot log into root or figure out how to open this file as the root user. I'm still somewhat new to Linux, so could someone please give me an idiot-friendly step-by-step of what to do to open, edit, and save this file as a root user?

View 3 Replies


ADVERTISEMENT

Debian :: Mounting Other Partition And Editing As Root?

Jan 22, 2011

I have Linux Mint (LMDE) on another partition and I guess I need to do some 'fixing' so I need to mount the partition. I can't, though, not by just clicking the partition (obviously?). I assume this is because I need root access to mount it.

how I can do this?:

1) CLI - mount via CLI by mounting at some point - for e.g., mine is /dev/sda3 so mount as ?

2) Use an 'editor' or file manager - such as Dolphin - how would I do this?

3) Use a Live CD/DVD - I think this way is unnecessary but it's a way, right?

Anything I missed? I guess gparted could mount it?

Which method would you use?

I think one could ssh into it but I'm not able to do that yet.

I need to exit the xorg.conf file which is recently really messed up.

View 3 Replies View Related

General :: Prevent Root User From Editing Log Files (/var/log/*)

Feb 10, 2011

what if the root user by mistakenly stops/starts any service and tried to remove those traces from the log files and save those log files. Then how can we ensure that our log file is trusted. Is there any way where even the root(superuser) also cant edit/modify the contents of the /var/log/* files.

View 2 Replies View Related

Debian :: Editing A Pdf File-SOLVED

Jul 20, 2011

I had/have an old program which works on XP called PaperPort. It allows me to edit and fill in blank forms. I have been searching for something like that for Linux, and to date found nothing, Chances are that I am looking in the wrong places.

View 2 Replies View Related

Debian Configuration :: Editing / Etc / Hosts File To Make Website Loopback

Sep 6, 2010

I am trying something a bit tricky.Suppose there is a website URL...Now suppose when i open a file /var/www/ test.php which connects to the above website to gather some info and then allow me to further in the process, i want it to instead direct to a file say /var/www/test_done.php.How do i edit my hosts file for such a scenario? Is there any other better option than using a hosts file ?

View 1 Replies View Related

General :: Editing A File Using Awk?

Apr 29, 2010

I have a list of millions of filename in form of say "drau3DDFEA5E01205841DC1B277A".
I need it convert it intousr/local/data/d/dr/dra/drau/drau3DDFEA5E01205841DC1B277AI believe that can be achieved by awk or sed.

View 1 Replies View Related

General :: Editing A Boot File

May 4, 2010

I have samsung laptop and there is a nasty program called samsung recovery solution that changes the active partition to Windows each time you enter it. The trouble is: I have 2 OSes, Opensuse and Windows 7, and Grub that is installed in my Extended partition, so each time I enter this recovery program active flag is changed and Windows is loaded instead of grub. I have noticed some boot files in that program's folder, so the question is how can I edit them in most convenient manner? I have kde 4.5.3 is there some sort of included program that would help?

View 6 Replies View Related

General :: How To Get Color While Editing File Through SSH Session

Nov 25, 2010

I use cygwin on Windows7 to open a ssh session to my linux box. When I edit a file with vim, I don't have color, only kind of gray bold. I have colors when I do a ls into my ssh session. I have also colors when I edit files from a ssh session from my linux box to my linux box. I modified the shortcut on Window7 to run cygwin in 256 colors, no effect. Do I need to set an environment variable on my cygwin session ?
On Cygwin and On Fedora when "sshed" from Gygwin : TERM=cygwin

View 2 Replies View Related

General :: Editing Inittab File From Grub?

Jul 27, 2010

During my several experiment on linux I accidentally put the default runlevel to the value 6..thus before starting its going to restart ..currently running mint 9. there is only one way that somehow i can edit that file from grub command line.

View 4 Replies View Related

General :: Text File Column Editing

Jul 17, 2011

I have 2 large text files , one looks like this:

<contact type="1">blahblah@hotmail.com</contact>
<contact type="1">blahblah2@hotmail.com</contact>
<contact type="1">blahblah3@hotmail.com</contact>

The other is a list of emails in single column format like this:

emailaddy@hotmail.com
emailaddy2@hotmail.com
emailaddy3@hotmail.com , etc

Is there a command to delete all the blahblah emails from text file 1 and replace them with the ones from text file 2?

Or maybe a linux version of 'Csved' which has the ability to add,remove,insert columns?

View 5 Replies View Related

General :: Cannot Find Specific Glibc Tar File For Editing?

Feb 3, 2011

I have the tar file of glibc-2.12.1, but now I want to edit the SPEC file. I can't find it. For those that want a "why", I'm trying to make it smaller. So simply, where is the SPEC file for glibc? (rpmbuild cannot find it in the *.tar.gz file).

View 4 Replies View Related

General :: Boosting Application Performance By Editing Kernel File?

Jun 15, 2010

which file is edited of kernel for boosting the application performance at boot

View 2 Replies View Related

General :: Image Editing (have To Increase A File Size To Just 1 Kb) In Ubuntu

Jul 25, 2011

i have to upload a signature image(in jpeg format) to fill a recruitment form which says file-size must be of between 10-20 kb......i have scanned image which is of 9.5 kb.....tried to edit in shotwell photo manager....tried some random things in Adjust and crop menu but my little changes didn't work, it always shortened the file size......as i don't know anything about Image editing can someone tell me how can i increase the file size (>=10kb) i also tried gnome-screenshot to take the screenshot of the image, but it also saved the new image smaller than 10kb....

View 6 Replies View Related

General :: Remount Root Filesystem As Read/write After Modify Readonly-root File?

Dec 21, 2010

My linux distro is CentOS 5.3. Today I edited /etc/sysconfig/readonly-root and set "READONLY" to yes, now my /etc/sysconfig/readonly-root file is like this:

# Set to 'yes' to mount the system filesystems read-only.
READONLY=yes
# Set to 'yes' to mount various temporary state as either tmpfs

[code]...

View 3 Replies View Related

Ubuntu :: Editing Root Owned Folders With A User Program?

Apr 10, 2011

I'm using the IDE Netbeans (text editor) on my /home/michael Ubuntu account. I'm trying to open a file with Netbeans that's owned by root, I can't do this as I expected. So is there a way to run NetBeans as root, or is there a way to give netbeans permission to open/save files owned by root

View 1 Replies View Related

Fedora Security :: Reset The Root Password By Booting Into Single Usermode By Editing Grub

Apr 17, 2009

Being able to reset the root password by booting into single usermode by editing grub. This is a MAJOR flaw. I know it makes no real difference against internet bourne attacks, but even so I must say I found it shocking. The only way I've found to stop this is to encrypt the entire HDD, so noone could get into single user mode without first knowing the encryption key/password.

View 14 Replies View Related

Debian :: Install A .run File As Root?

Sep 5, 2010

person can set permissions on a .run file to 'execute as program', though this then returns response that the file needs to be run as root.

View 2 Replies View Related

Debian :: Use File Browser As Root?

Jun 26, 2011

Is there a way I can use the file browser as ROOT to move some files around, WITHOUT having to use the terminal es ROOT?

View 6 Replies View Related

General :: Cannot Open File In RW Mode - Filling Root File System With Log Files

Nov 3, 2010

I work for a company that makes portable devices running Linux and I was recently asked to make the underlying file system read-only for "security" purposes. Since the distribution is based on LinuxFromScratch, I know that very little writing happens at run time. So, even if the device runs on a usb flash device, I doubt that putting the root file system RO will be that beneficial. I am actually more concerned about a process actually breaking because it cannot open a file in RW mode than a process going rogue and filling the root file system with log files, etc. I'd really like to ear what kind of advantages disadvantages there really is with read-only file-systems.

View 6 Replies View Related

Debian :: Properly Open A File As Root?

Mar 24, 2011

i will try to keep this post short and to the point. i am currently running debian with kde and i am trying to edit /etc/apt/sources.list. i know that this file needs to be opened as root for the changes to it to be saved, so what im doing (in konsole) is:

concreteabstract@debian:~$: su
Password:
root@debian: /home/concreteabstract# kwrite /etc/apt/sources.list

but that doesn't work, and the message i get is:

No protocol specified
kwrite: cannot connect to X server :0.0

View 5 Replies View Related

Debian :: Use File Manager Actions With Root Permissions?

Jul 30, 2011

If I use the GUI File Manager I ofter get stuck because I need root permissions to write or delete some file or directory. I realize I can drop down to Terminal and do either a sudo or change the permissions of a particular file, but these are several extra steps. Is there a way I can perform root actions on files using File Manager/Browser? Or is there an alternative file manager program I can explore that is more flexible? I am currently using Debian 6.01a installed from the Live CD, Nautilus 2.30.1.

View 14 Replies View Related

Debian :: Fresh Install - Root File System Error?

Mar 1, 2010

After a fresh install of Debian I came across an error Im hoping you guys can help me with. Ive searched for the error and it appears there are multiple reasons that could be causing it. To compound the problem, Im at work so I dont have the specific error messages....so I just installed Lenny (standard install, no desktop) using a USB installer and everything went very smooth. On first boot, the system paused while waiting for the root file system. After a minute or two it just errored out complaining it could not find the root file system and put me at a (vmlinuz) prompt?My guess is that I need to go into my bios and change my boot priority.. but again, thats just a guess.

View 1 Replies View Related

Debian Installation :: Encrypted LVM Install - No Root File System Detected

Jun 1, 2013

I'm a long time user of Debian, but I'm having trouble with my partitioning process. Here is where I currently stand:

I am installing the latest Wheezy build. I am trying to install debian with an encrypted LVM that spans two hard disks.

My partitioning layout is as:

1. /home
2. /root
3. swap
4. /boot

I then added partitions 1, 2 and 3 to a physical volume group. I then took that physical volume group and added it to a logical volume. Then I encrypted the logical volume, leaving the /boot partition untouched. I was under the assumption that the only partition the system needed free to reach the loading of the LVM is the /boot partition, as it holds the files necessary for booting. But when I attempt to finalize the disk, it gives an error stating, "No root file system detected". That would be an issue as it is currently sitting inside the encrypted LV. Am I wrong in including the root partition in the encrypted LV?

What is the best way of having as little of my file system non-encrypted as possible while still allowing a proper boot?

View 9 Replies View Related

Debian Configuration :: Can't Umount Ramdisk After Loading New Root File System

Feb 1, 2010

I have built a kernel with a ramdisk(ramdisk.image.gz) included. Also in the kernel command line I specified root=/dev/ram0. I am trying to use this ramdisk to load a loopback file as the root filesystem off a fat partition. This is /sbin/init from the ramdisk.

#!/bin/sh
mount -n -t msdos /dev/mmcblk0p1 /mnt
losetup /dev/loop0 /mnt/linux/linuxdsk.img
mount -t ext2 /dev/loop0 /mnt2

[Code]....

The problem is both umount and blockdev report "device is busy". I want to free up this RAM any suggestions?

View 1 Replies View Related

Debian Configuration :: Start X Server In A Read Only Root File System?

Apr 27, 2010

For my project, it's absolutely necessary to have a read-only root partition system. I have a writable /opt/project partition.But, I also need to start x server. startx This tries to write to some temporary files and fails as / is readonly. Is there any how-to on how to move this temporary files to the writable portions of the file system.

View 3 Replies View Related

Fedora :: Can't Open File For Editing

Apr 8, 2011

I tried to open and edit a root file to edit it and I got this error:gedit /usr/etc/w3c/validator.conf

View 2 Replies View Related

Ubuntu :: Editing A .torrent File?

May 16, 2010

how to go about editing a .torrent file?

View 3 Replies View Related

Fedora :: Editing A 26 Gigabyte Text File?

Jul 15, 2009

I did a pg_dump of our data warehouse, and it is 26 gigabytes. I wanted to load this data into a different database product (one that forked from Postgresql, so its syntax is very similar).I needed to change the syntax of the "COPY" command in the pg_dump output, remove references to "public", and change the table owner name. sed did these for me (albeit slowly). The output from pg_dump is a file called "pg-dump-output.sql".

pg_dump produces this:
Code:
...

[code]...

View 4 Replies View Related

Ubuntu :: Kate Editing Java File?

Jan 30, 2011

I am a CS major and Iv'e been using vim with a custom rc file to do my editing... A professor suggested we can use kate with terminal for better speed so I thought I would give it a try. Unlike vim, geany, eclipse and others kate does not indent java code, for example after "{ <ENTER>" it should indent to the right 1 tab, but it does not, so I have to press <TAB> every time I go to new like, and I have to go back and forth for different statements...

This does not make things faster at all, Is this even possible? Any other editor suggestions that do not use GTK, but kde native Qt with terminal emulator?

View 2 Replies View Related

Fedora Installation :: Editing Boot INI File To Detect F12?

Jan 6, 2010

Problem is to boot fedora. On my system I have 3 HDD
on 1st - 2 partition (1)XP (2) free space for data NTFS
on 2d - 1 partition (1) Win Serv 2003
on 3d - 3 partitions (1) free space for data NTFS (2) /boot (3) Fedora 12

After installation boot manager doesn't see fedora! Only give me option to run XP or 2003. Another problem Fedora 12 Live CD doesn't work for my graphic. I see some quick text after lanch and then black screen but still understand that there going some processes under that black screen, than it looks like stop and w8 for my decision which I cant make cause don't see what is there going on. So there no chance to get under linux after instalation and no chance using live CD to install GRUB and I need some how edit boot.ini in windows to make it appear fedora in boot menu.

My current boot.ini looks like that:
Code:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(1)partition(1)WINDOWS
[operating systems]
multi(0)disk(0)rdisk(1)partition(1)WINDOWS="Windows Server 2003 Enterprise x64 Edition" /noexecute=optout /fastdetect
multi(0)disk(0)rdisk(0)partition(1)WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
how should looks 3d line?
Code:
multi(0)disk(0)rdisk(2)partition(3)Linux="Fedora 12" /noexecute=optin /fastdetect
like this?

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved