LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-02-2006, 01:46 PM   #1
TheFather
LQ Newbie
 
Registered: Nov 2004
Location: Mount Joy
Distribution: debian
Posts: 26

Rep: Reputation: 15
Permission


How do get permission to add files to the root directory? Or, how do I find the C:/ Drive?

Last edited by TheFather; 02-02-2006 at 01:51 PM.
 
Old 02-02-2006, 01:59 PM   #2
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
Well...we have two questions here...

1. To add files to the root directory, you need to be logged in as root. Typically the permissions set to the root directory are as follows:

drwxr-xr-x 22 root root 4096 2006-01-03 13:06 .

This means that root owns the root directory, and everyone has read and execute permissions to it. In order for you to get access to it you will need to be root.

2. For the C:\ directory, you first need to know where it is located in relation to the partitions on the system. You may be able to tell which partition it is by the size and by looking at /proc/partitions. Once you know which partition it happens to be (say /dev/hda1 or /dev/sda1), you can then mount it to a location. For instance, the following would mount a FAT32 partition in linux:

$ mount -t vfat /dev/hda1 /mnt/c-drive

This would mount the partition /dev/hda1 to the mount location /mnt/c-drive. You will need root permissions in order to do this as well.

If your C: drive is an NTFS partition, it is possible to mount that drive as well:

$ mount -t ntfs /dev/hda1 /mnt/c-drive

Understand that you can only mount NTFS drives read-only.
 
Old 02-05-2006, 06:27 AM   #3
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Rep: Reputation: 45
Easy way is to run File Manager in super user mode.

You can add an icon to the desktop to run this:

konqueror --profile filemanagement

It will prompt you for the root password before it runs.

Note that any files or directories you create will belong to root an you may need to change their permissions (even in your normal-user home directory).
 
Old 02-05-2006, 08:51 AM   #4
TheFather
LQ Newbie
 
Registered: Nov 2004
Location: Mount Joy
Distribution: debian
Posts: 26

Original Poster
Rep: Reputation: 15
It gives me this error when I try that.

[CODE]Details: Failed to execute child process "konqueror" (No such file or directory)[CODE]
 
Old 02-05-2006, 01:12 PM   #5
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Rep: Reputation: 45
Are you running KDE? I assumed (possibly wrongly) that you were.

Try running that command from a shell. Try it as root. If it works then add kdesu in front of the command OR add yourselt to the sudo group.

Hope this helps.
 
Old 02-05-2006, 01:23 PM   #6
TheFather
LQ Newbie
 
Registered: Nov 2004
Location: Mount Joy
Distribution: debian
Posts: 26

Original Poster
Rep: Reputation: 15
Im running gnome.
 
  


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
permission not given ekips_zbuhc Linux - Newbie 1 01-28-2006 08:18 PM
no permission... mifan Linux - Networking 9 01-23-2006 09:56 AM
Why don't I have permission ben_h_24 Linux - Newbie 19 09-17-2005 12:51 PM
No permission to PM? Newb001 LQ Suggestions & Feedback 5 06-13-2004 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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