-
How to change user to root
First off I am very new to Linux. My goal is to use the Linux box to serve divx files to my media center which is running 2000. When I follow directions on setting up samba they require changes to the config file which is found in the root folders section. My problem at this point is that when I make changes I cant save them. I assume I need root privleges. I try to login as root but am told by the system that root login is not allowed. How do I change to root and stay that way untill I am satified with the changes? Tried to search man pages but found no clues.
For info. this is a hard drive install with sudo knoppix installer first choice for beginners. Knoppix 3.7.
Should I have chosen a different install selection such as the debain style one (old way)?
I have other questions latter related to shared folders but need to get past this first.
Thanks in advance.
-
Senior Member
registered user
You need to be root to change most configuration files.
open a terminal.
Type:
su
(prompt for root password)
vim /path/to/file
use the arrow keys to navigate. When you get to the line you want to edit, hit the "i" key. You can now edit the lines you want. When you're finished editing, hit the Esc key, and then shift+Z+Z to save.
There is alot more to vim than this, and several vim editors out there.
Alternatively, you could log in as root and use Gvim (which is like a vim with mouse support).
-
Thanks fingers99 I will try that. However the system will not let me log in as root. How do you log in as root? Maybe I left out an important detail. I'm in the kde gui. I was using file manager to select the file and open it. This would be where I would be most comfortable editing. can I log in as root in the kde enviroment and edit in kwrite or similar editor? Please forgive any stupid questions but I am at the bottom of the food chain here.
Thanks
-
Ok. Tried what you said from terminal and it did ask for my password. It then gave me root permission.However when I type the path: /etc/samba/smb.conf it tells me permission denied. Do I need to reinstall to hard drive since I picked the one that said for begginners. It is not a problem since the machine is 100% for linux? Also I just downloaded 3.8.2. If so what type of instal,l as sudo gave me if I remember 3 or for choices?
Thanks again.
p.s. machine seems to run ok otherwise I am using it to type this message.
Similar Threads
-
By jameshanley39 in forum General Support
Replies: 0
Last Post: 09-03-2006, 06:58 PM
-
By Sago7 in forum Customising & Remastering
Replies: 3
Last Post: 11-04-2004, 04:09 PM
-
By jmpereira in forum Customising & Remastering
Replies: 6
Last Post: 08-07-2003, 11:45 PM
-
By Stephen in forum Hdd Install / Debian / Apt
Replies: 6
Last Post: 05-04-2003, 02:53 AM
-
By Guest in forum Customising & Remastering
Replies: 1
Last Post: 12-22-2002, 04:49 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5" 512e HDD NetApp X375A
$64.00

DELL 2TB Enterprise HDD (7200RPM, 3.5", SATA III, 128MB Cache) HUS722T2TALA600
$49.95

HDD 3.5" SATA Hard Drive with Windows 10/Win 11 64x Installed Legacy
$35.00

Seagate ST8000NM0075 Enterprise Capacity 3.5 HDD 8TB SAS Hard Drive 8TB EXOS
$184.99

Dell ST6000NM0034 1HT27Z-150 NWCCG 6TB SAS 3.5 7.2K ENTERPRISE SERVER DRIVE
$68.99

Hitachi Ultrastar 3TB 7200RPM 3.5in SATA III 6Gb/s - enterprise-grade hard drive
$49.00

Seagate ST3000NM0005 HDD 3TB SATA 6Gb/s 7.2K 3.5" 512 b/s
$59.00

Western Digital Blue (7200RPM, 3.5", SATA III, 64MB Cache) 1TB HDD
$19.90

HUS726060ALA640 HGST Ultrastar 6TB SATA 6Gbps 7.2K 3.5" Hard Drive OF21860
$129.99

Western Digital 1TB 3.5" SATA III 7200RPM Desktop Hard Drive
$34.99