Ubuntu :: How To Make Files Read And Write
Jan 12, 2010i know that chmod +x makes a certain file executable but how do i make a file read and write.
View 3 Repliesi know that chmod +x makes a certain file executable but how do i make a file read and write.
View 3 RepliesI need to change a filename but when I boot up I get the message root device is read-only. Is there a way of changing this so that I can change the filename. I have a Mac Pro running Leopard OSX. The graphics card an NVIDIA 7500GT or driver has failed. It was suggested elsewhere that I change the relevant kext files to filename.kext.old, which I did, now when I try to boot start in OSX I get a message in various languages telling me to restart. I have tried booting in safe mode and from original Installation CD. In Safe Mode I get the same multi language splash screen, from CD I still have the graphic card problem, screen freezes and artifacts appear. So I boot up straight into CLI by holding down CMD-S hoping to be able to change filenames back but it says device read-only.
View 2 Replies View RelatedI've extracted a few files through the archive manager through Ark (as well as through the command line) and some folders/files that were originally in Japanese are not properly displayed in the terminal or file browser. I can't delete them nor open them; I am informed that this file does not exist.I am running Kubuntu 11.04. I had a similar problem in Ubuntu 10.04 in that the text was not displayed properly, but the files were readable and writable.
View 2 Replies View RelatedSuch as the title
View 2 Replies View RelatedI have a file server running 10.04. I have a user that belongs to 2 groups (users is the primary and IT is the secondary). I have permissions set up so that this user and other users that belong to the IT groups can read/write files and others have no permissions whatsoever. I have also set the umask to 0007 so that any files created have the effective permissions. My concern is this: since my primary group is users, is it possible for me to create files with the owner group IT for only this specific folder?
View 2 Replies View RelatedRecently i formatted my HDD into 5 partition namely :-
1) Win Vista
2) Ubuntu /
3) Home
4) Swp
5) EXT4 (Purpose is to share files between ubuntu and vista)
I'm wondering if its possible to install Virtual Box on both OS but pointing only to 1 virtual machine.
Also if its possible to permanently mount the shared partition on both OS.
I had to reinstall Ubuntu (Natty) on a brand new computer and while installing I setup the datas partition to be mounted in /usr but now I can't have access to files I put in there even if I setup the group/user permission! I can accezz /usr/Music but all files are locked
View 5 Replies View RelatedOn an Apache2 server someone else setup, I have a folder with drwx--x--x permission and the php file can still write in the folder. But on my own setup, I need to set the same folder to drwx--x-wx. Inside the folder, I have a index.php that runs just by setting rwx--x--x but on my own setup, I need to allow read permission for others/group before it can run: rwxr-xr-x (or else I get a blank page). I tried changing the folder and files to root but it's the same.
View 5 Replies View RelatedI am trying to setup my webserver and I am trying to make a website to run under suexec but somehow I cannot start my apache it directly fails and SELinux is giving me errors and don't really know what to do with it, it is giving me some command to type but not sure if this will make my server less secure. The SELinux error is as follow:
Code:
Summary:
SELinux prevented httpd reading and writing access to http files.
Detailed Description:
SELinux prevented httpd reading and writing access to http files. Ordinarily httpd is allowed full access to all files labeled with http file context. This machine has a tightened security policy with the httpd_unified turned off, this requires explicit labeling of all files. If a file is a cgi script it needs to be labeled with httpd_TYPE_script_exec_t in order to be executed. If it is read-only content, it needs to be labeled httpd_TYPE_content_t, it is writable content. it needs to be labeled httpd_TYPE_script_rw_t or httpd_TYPE_script_ra_t. You can use the chcon command to change these contexts. Please refer to the man page "man httpd_selinux" or FAQ [URL] "TYPE" refers to one of "sys", "user" or "staff" or potentially other script types.
Allowing Access:
Changing the "httpd_unified" boolean to true will allow this access: "setsebool
-P httpd_unified=1"
Fix Command:
setsebool -P httpd_unified=1
I will write down how I did setup my server so maybe you can see a mistake I did. First I changed my Apache httpd.conf I added the following to it:
Code:
NameVirtualHost 192.168.1.2:80
<VirtualHost 192.168.1.2:80>
ServerName localhost
DocumentRoot /var/www/html
DirectoryIndex index.html index.html index.shtml index.php
</VirtualHost>
<VirtualHost 192.168.1.2:80>
SuexecUserGroup ulyaoth ulyaoth
ServerAdmin webmaster@ulyaoth.org
ServerName test.ulyaoth.org
DocumentRoot /var/www/ulyaoth/www/html
ErrorLog /var/www/ulyaoth/logs/error_log
CustomLog /var/www/ulyaoth/logs/access_log common
DirectoryIndex index.html index.htm index.shtml index.php
ScriptAlias /cgi-bin/ /var/www/ulyaoth/www/cgi-bin/
<Directory /var/www/ulyaoth/www/cgi-bin/>
AllowOverride none
Order allow,deny
Allow from all
Options +execCGI
AddHandler cgi-script .cgi .pl
</Directory>
</VirtualHost>
Then I created the username "ulyaoth" with the group "ulyaoth" as I specified with my suexec, then I created all the directories as specified in my httpd.conf and "chown ulyaoth:ulyaoth (dirname)" them to the right group and username.
I've blown a couple of DVDs trying to burn them with correct file masks (directories and files are read-only). There doesn't seem to be any documentation for K3b (building the index doesn't do squat and the help says "The file or folder help:/k3b/index.html does not exist"). I can't seem to figure out a setting that simply copies everything the "way it is."
View 7 Replies View RelatedWhat are the possible problem when Windows access the file from Ubuntu got Read Only even though have a full permission to read, write and execute the file? Ubuntu to Ubuntu accessing the file there is no problem only Windows got a problem.
View 1 Replies View RelatedI want to write a shell script which will simultaneously collect OS user information and write in an individual text files.Can anyone tell me the syntax of the script.N.B. The user name will be mentioned in an array within the shell script.
View 8 Replies View RelatedI did install QLandkartGT and the plugin to use Garmin with it and it looks like it work, but when I do press "Live Log" I get the error message; "Device Link Error. Failed to request real time position. Realtime thread failed. Failed to configure USB: could not set config 1: Operating not permitted".
I also get a similar error when trying to download tracks; "Failed to download tracks. Failed to configure USB: could not set config 1: Operation not premitted".
My guess is that Ubuntu do not allow programs to use the USB port, so my question is how I do allow this program (or all) to use the USB ports.
he clicks on everything on his GNOME desktop, and manages to delete everything, including menus, icons, etc. The people he lives with aren't skilled enough to fix it, and I live a good eight hours away. I have remote capabilities with NX, but that requires them to initiate a connection to my workstation here, which is more painful than I thought it would be. I need a way of locking down the desktop, so it's read-only, so he can't make the changes he seems to keep making. I figure I could make the .gnome directory read-only, but I don't know if that would affect the normal operation.
View 3 Replies View RelatedI just installed Ubuntu 10.04 on my system, and I put in a really old game CD for my really old computer. I cannot run the setup program , however because "it is not executable". I can't change this , because it is read-onlybut I can't chane this either. As I'm new to this, I was wondering .
View 5 Replies View RelatedI have a netbook with Ubuntu 10.10 installed in it,and a Pc with also ubuntu 10.10 in it , but x86_64.
I want to copy some iso files and data from my user home directory on the netbook , to the user home directory of the other pc , using a 8 GB usb formated in ext3 with gparted in my pc.
One iso is a windows 7 one to burn then with K3b , as i need to have windows installed in that box. Also of another iso that i have to burn too (windows 7 recovery disk) , and 3 anti-virus trials for windows.
As the usb is owned by the root (or more properly the mounting point,no?), and i can't use my user to copy data to it i usually do :
Usually , what i use is "sudo nautilus" then go to the place where is the data , copy it , and paste it then in the usb. Then in the other pc i do a chgrp and chown to the iso or file.
But , perhaps this is not the better approach. I have investigated a bit , and i think that i have found a better way , but i have some dudes.
The method is change the owner,group and permissions of the mounting point:
Code:
cd /media
ls
umount /dev/sdb1
sudo mkdir usb
[Code].....
If i do this steps in both computers, with each user,in the netbook i can copy the iso to the usb (as fox can write to the mount point of the usb ), but can the other user in the pc 'mulder' read the iso , so be copied to /home/mulder, and then be able to burn it in k3b with success ?
I suppose that having 766 , it should be able to read it , but would have the own of the file ?
How important is not to only be able to read it , but also own it ?
I suppose if the user ID is the same , wouldn't be any problem ,as each ubuntu would supose that the file is owned by their user.
Perhaps the user name change,but if the ID is the same , the user is the same for ubuntu , not any different, no ?
sudden of all all USB drives and sticks I put into a PC will not mount with read/write permissions (they did before). I can still copy to them, but only when I am root. I am on Maverick I've noticed though that if I run disk utility, then UNMOUNT the partition, Check File System, Mount the partition back, I get read/write access..
View 9 Replies View RelatedRecently i acquired an electroencephalograph (EEG) and started to experiment with it, and i need some way to write or send a couple of Hex numbers to the EEG so it will start working, and then to save the data on text file, or at the very least see the output on the terminal using C or C++, i found some programs around the forums but none seem to work properly and more often than not, The EEG is recognized as /dev/ttyUSB0 has a baud rate of 921600.
View 2 Replies View RelatedI want my samba to keep my windows attributes exactly what the user setted in windows I mean if it has read only file in win box and copy it to samba share ,samba keep it read only and same for other attributes but it does not do it now with my configuration:Quote:
[global]
workgroup = DOMAIN
server string = File Server
[code]...
I would like to be able to read and write on hd formatted as Hfs+ not journaled...I know it is possible, but still I can't since ubuntu mount them with a different user: 99.If I add my user to the group 99 will be fine? or exist another way to write on such file system?if use hfs+ not journaled it will be less safe for the files?
View 3 Replies View RelatedI have a file system that I can't seem to read and write to. I've tried everything I can think of.
Code:
root@xubuntu:/mnt/t1# ls -la
ls: cannot access .Trash-1000: Input/output error
[code]....
If I have an external hard drive NTFS it is as safe to read/write on it from either Win XP and Ubuntu?
View 5 Replies View RelatedI was wondering if anyone knows how to read write a ntfs partition on thats on a separate linux machine ?
Is that even possible from one linux machine to another ?
Recently my Ubuntu system decided to crash. Sometimes the mouse freezes, sometimes I just can't open anything, and other times I can access the terminal but can't write. I can open files as read only both in my /home partition and in /var/log, but I can't write at all. Sometimes I get Bash: input/output error. I *can* "ls /proc", if that makes any difference.
I find that if I reboot, the problem goes away for a few minutes and then reoccurs. I can read/write to my other (windows) drive, although when I did a chkdsk in win7, I get a "An index entry from index $0 of file 25 is incorrect" message. Is the disk failing? Just a few bad sectors? Maybe the filesystem is corrupt? Why can I read but not write?
Is there an easy way to read/write to a mac partition inside ubuntu 11?
Any graphical ways to mount / umount?
When i boot from live USB, i can't write anything to it, because the 'Filesystem is read-only'. How can the boot USB be mounted as read-write? Maybe some boot options are needed?
View 2 Replies View RelatedI want to make a new partition that I can read and write to from Ubuntu 11.04 and Windows 7. I haven't used Ubuntu much since 8.10 and it seems that I remember it being much easier to do then. I'm using this partition to store my music, pictures and videos on if that is of any relevance. I also need this to be something that can't mess up my windows side of my computer as I need that for work.
View 9 Replies View RelatedI am running Karmic x64 on a HP laptop that has a cd/dvd burner. I have a r/w cd with files on it and I wish to add/remove files to it. After it mounts automatically on insertion, I unmount it and remount with:
sudo mount /dev/sr0 -t iso9660 -w /media/cdrom
(I tried assorted other hare-brained things also) but it always says that the filesystem is read only. Do I need to use a different device than sr0? Is it even possible under Ubuntu?
I recently installed Ubuntu 10.04 using Wubi on an ACER Aspire 5000 XP laptop. Everything runs ok and I can access my Windows folders from Ubuntu through the host directory but only as Read Only. I have checked to make sure that the Windows folder I want to access (My Documents) is not designated as Read Only in Windows.
View 1 Replies View RelatedWe have a network with several computer. We have two file servers (don't ask why) an Ubuntu and an XP as well as many clients. Setting shares on Ubuntu was easy and all clients can see them read and write. but I can't get the Ubuntu clients to see the SMB shares on the XP properly. This is my fstab:
Code:
//192.168.0.100/resources /media/resources smbfs iocharset=utf8,credentials=/home/boss/.smbcredentials,dmask=775,gid=1009 0 0
//192.168.0.9/summer /media/summer smbfs iocharset=utf8,credentials=/home/boss/.smbcredentials1,dmask=775,gid=1009 0 0
[Code]....