LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-17-2006, 05:35 AM   #1
tobiasw
Member
 
Registered: Oct 2006
Distribution: Fedora Core
Posts: 60

Rep: Reputation: 15
How to gain Write-Access to a File System as Root


I am trying to get change a script in a directory of a Linux derivat. I am logged in over root. The directory /opt/... seems to be write locked, I cannot create or change files. What I need to do to get write access??

Thanks and Regards
Tobias
 
Old 10-17-2006, 06:21 AM   #2
imagineers7
Member
 
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310

Rep: Reputation: 30
Hi tobiasw,

can you post the output of
ls -la in that directory,

If it is r-x r-x r-x you will have to enter

chmod -R 700 dirname

If you see something like t in the list you will have to:-

chmod -t filename


Hope this helps you,


Aniruddha

Last edited by imagineers7; 11-11-2006 at 10:47 PM.
 
Old 10-17-2006, 08:50 AM   #3
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
...or it could be the filesystem itself. To see if you have any readonly filesystems mounted, try this command:

Code:
mount |grep '(.*ro.*)'
If you have a readonly-mounted device on which you wish to modify a file, you can remount it readwrite like this:

Code:
mount -o remount,rw /mount/point
Of course, this won't work if the readonly-ness of it is from the filesystem type (e.g. a CDROM or a squashfs filesystem image).
 
Old 02-02-2011, 08:02 AM   #4
n9bk
LQ Newbie
 
Registered: Nov 2006
Location: Shelbyville, Indiana
Distribution: PCLinuxos Full Monty Desktop
Posts: 3

Rep: Reputation: 0
How to access an iso image.

Nice thing about unix (Linux) is that all the tools are available to do what you want.
Try this:
# mount -o loop file_name.iso /mnt

No need to copy files ie: dd etc...

Now you can see that the iso image is now mounted just like all other partitions by a df command.

Bob Westwater
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't gain new ROOT access dauphinfay Linux - General 3 07-28-2005 12:38 AM
How to gain **write-access** to windows xp files? sairam9 Linux - Newbie 3 07-14-2005 09:09 AM
Gain root access to user longnam Slackware 5 03-29-2005 11:43 AM
Shell scripts: gain root access - how? ludeKing Programming 16 09-02-2004 10:35 PM
which is the best file system for read write access from linux and windows tomank Linux - Newbie 4 04-05-2004 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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