Ubuntu :: Taking Ownership Of New Partition?
Feb 10, 2010
The previous writer gave instructions for editing fstab. He said to enter something like the following line in fstab:
/dev/hdb1 /media/harddrive ext3 defaults,errors=remount-ro,users,user_xattr,user 0 0
My partition is: /dev/sda7.
I created a folder in media: /media/8g
The file system is: ext2 (Do I need the "defults" instruction? What does this do?)
errors=remount-ro (I think I understand this)
[Code]....
He also said, after this was all done, to enter the command: sudo mount /media/[my new partition]
Since it's already mounted? What does this command accomplish?
View 9 Replies
ADVERTISEMENT
May 25, 2011
I am trying to auto mount a partition in /Stuffz but I am not able to take the ownership of the drive. This is a snapshot of my /etc/fstab
Code:
#
# /etc/fstab
# Created by anaconda on Thu Mar 10 05:24:50 2011
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
[code]....
View 1 Replies
View Related
Feb 25, 2010
I can create folders in partition but i cant share them or change their ownership And here my fstab and fdisk list.About my hdds, on first hdd i have win installation as 3 partition and on second hdd, my lovely ubuntu and ntfs partition to use as shared in my LAN
Code:
harun@ubuntu03:/$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
[code]...
View 4 Replies
View Related
Jun 8, 2011
I have some confusion about one of my partition and the space it is taking. df -h output is given below;
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ddf1_ADVDTARTINGp1
494G 18G 452G 4% /
[code]....
above information is showing that /var/lib/mysql partition total size is 379 GB and it is 68% used. However when I execute command du -sh /var/lib/mysql it shows following output.
# du -sh /var/lib/mysql
45G /var/lib/mysql
Now I want to know what files are taking space to make the partition 68% used. I want to list down all files in that partition with size.
View 8 Replies
View Related
Feb 19, 2010
I've tried using chown to change the owner on one of my folders - but to no luck? This is what I run on the terminal - and there's no output. And when i view the permissions of the folder it's still set to root?[URL]
View 9 Replies
View Related
Jun 30, 2010
how to change the ownership of a folder and everything within it through the Terminal. chown, in this case, isn't going to work.
View 9 Replies
View Related
Jul 7, 2010
I need to install a script into my Gimp folder which is owned by root. I tried "chown my name usr/ share/ gimp2.0/scripts" in terminal, but it tells me folder does not exist. I know I'm missing something, but I haven't done this in a while, so I'm not sure what it is.
View 2 Replies
View Related
Nov 7, 2010
I have an external usb hard drive, vfat, mounted as /media/USB STORAGE. It has on it's own(?) changed it's ownership to root. I need to change it back. I have tried 'sudo chown -R pbhill : pbhill /media/USB STORAGE' and get the message that no such file or directory exists. I can access it read only, so I know it exists. Am I using the correct command?
View 9 Replies
View Related
Jun 7, 2011
I recently installed ubuntu 10.04 on a new system and installed Virtual box to run a virtal Windows environment. I also added an additional 2 Tb hard disk to the system that will be used to store the virtual machine(s). I managed to add the hard drive in ubuntu and it is recognized as DriveD_ in the Media folder (don't ask me how i did it ... trial and error). I am the owner of this folder. In the media folder there is also a folder named DriveD, and this is an empty folder. The owner of this folder is Root. When I start Virtualbox, Windows starts up normally, and recognizes the second drive D (which I partitioned and formatted before). After closing the Windows, Virtual box and Unbuntu, the mystery begins. When I start Ubuntu, the DriveD_ folder is not visible and I cannot start the Windows virtual machine (error message: VD: error VERR_FILE_NOT_FOUND opening image file). When using Tux Commander, I do not see DriveD_. When I use Nautilus to go to the same Media folder, both folders are visible (DriveD and DriveD_). When I open Drive_, the Virtual machine files are present. After doing this, I can start Virtual Box and start Windows normally. I think it has someting to do with the ownership of the second hard drive that I added (maybe I made a mistake attaching it in ubuntu?) Has anyone experienced this before?
View 2 Replies
View Related
Apr 17, 2010
I just got a 1.5 terrabyte Western Digital My Book 1110 external usb 2 drive. I used Gparted to reformat the drive to ext3. The problem I have is I can't change the file permissions for the drive because it says the drive is owned by root. I can't back up my files into the drive because it won't allow me to. I am using Jaunty Jackalope and got this drive to back up my files so I can feel comfortable in upgrading to Karmic Koala in case there are major problems with the upgrade.
I know someone out there in the community can tell me the commands to use in the terminal to let me gain ownership of this external drive from root so I can copy my files into it. the entire drive itself is seen as /dev/sdb One meg of the drive is unallocated and the part of the drive that I reformated is seen as /dev/sdb1 my personal files are owned by the name of dave
View 6 Replies
View Related
Sep 25, 2010
In order to get my PIC programmer to work through Piklab, I have to change the ownership of the /bus folder to myself;sudo chown MYUSERNAME -R /dev/bus.The ownership of the folder then reverts back to root after some time.Is there anyway to make it PERMANENTLY under MYUSERNAME ownership?
View 3 Replies
View Related
Oct 4, 2010
(Ubuntu 10.04) I would like to change to change the ownership of one of my storage partitions from root to dad - I am currently reading through as much Ubuntu documentation as I can but the process is slow. If I gksudo nautilus and select the drive, right click/properties/Permissions the owner is set to root. If I try to change the group ownership from root to dad it looks like it momentarily does it but it stays at root.
using Pysdm as a gui for fstab - but so far I have only found out how to allow other users to mount the volume not own it. My fstab entry for this volume reads as /dev/sdb6 /media/backuphd2 ntfs-3g group=dad,users,user,owner 0 0 - it looks to me that in terms of ownership, root = 0 0 Can I find out what the ownership of dad is in terms of numbers (e.g. owner 0 1 or owner 1 1) and then change the fstab entry?
View 5 Replies
View Related
Jan 1, 2011
I installed Ubuntu from the alternate cd a few days ago to save space and resources on a very old laptop. (install command line, then add what I wanted) But I have struck an interesting problem with file permissions. Various programs like synaptic, leafpad, pcman, Banshee, all require I enter the root password to execute them (or sudo command from terminal). I want to change synaptic from root ownership to sudo and leafpad etc to execute without using the sudo command in terminal. I could get comments on the commands before I execute them in terminal and if I am introducing a security problem, as I am still learning bash. $ sudo chown sudo:sudo synaptic
I would still be asked for my sudo password before being able to open synaptic? As in standard Ubuntu instead of root password.$ sudo chmod 777 leafpad pcman Banshee All users could open these programs from the menu? I have my admin account and a general account which I use for everyday things like surfing the net and listening to music.
View 6 Replies
View Related
May 16, 2011
I have an Ubuntu machine running NFS4 server and a plugapps (arch linux) machine connecting as the client. The plugbox is running an rsync job to backup the home directory from Ubuntu to a local USB HDD.
All of the files in the destination have owner nobody and group nobody.
Ubuntu /etc/exports:
Code:
/home 192.168.2.1/24(rw,sync,no_subtree_check,no_root_squash)
plugbox /etc/fstab
[Code].....
how I can mantain the file owners. I have the UID's and passwords sync'd between the two machines for both root and the user who's home dir is being backed up.
View 9 Replies
View Related
Aug 1, 2011
I've created a share using Nautilus on an Ubuntu 11.04 machine and can access it OK from both my Win 7 pc and partner's WinXP machine. We both have Ubuntu accounts and use those to access the share. When an Excel spreadsheet is saved on the WinXP machine the ownership changes and it can then only be opened read-only on the Win7 machine. A further complication could be that the Win7 machine has OpenOffice and the WinXP has MS Office. I'm guessing that XP + Office doesn't really care about or see the permissions, but Win7 + OpenOffice does. Should I be using the share with the same username from both PCs? Is my whole approach misguided?
View 1 Replies
View Related
Aug 5, 2011
So, I've done a lot of stupid things, but this one ranks pretty high. So I'm looking at files here and there, fooling around and tweaking things if I can, but after a while, I get sick and tired of having to fiddle around because a file's owner is root. So, completely ignoring the fact I could start an x session as root, I perform the following command:
chown -hR MY-USERNAME / I'm thinking to myself, "Oh look at me, I'm so smart" until I turn off my laptop for the night and come back this morning, and ubuntu (10.10, 32 bit) says it could not change ICE authority (or something like that) and a few more error messages. Then, I boot into the recovery console, and again, not even bothering to think anything through properly, I chown everything back to root, then chown my home folder back to me. Anyway, I still get the error message, execpt now I can't alt-c to close the first windows that talks about the ICE authority file.
One of my friends has an ubuntu partition, so I can ask him about certain ownerships, but that could take a while and I don't know where to start.
View 3 Replies
View Related
Jun 22, 2011
I'm a bit of a Linux newbie so bear with me. I had a problem with Gnome-DO not starting on start-up. Searching this issue suggested that Gnome-DO was trying to start before a service that it needs to start and a script to fix the problem was provided:
Code: !/bin/bash
sleep 10
gnome-do When I try to save this file (using gedit) to any folder in my home directory,
[code]...
View 5 Replies
View Related
Jan 15, 2010
I'm building a new system, with the goal of making it an Ubuntu-only box. Among the things I have installed, I have a 1tb ext4 hdd and a 320gb ntfs hdd.Due to my ignorance, right now, I can't boot, but that's not the point of the question. Let me try to explain the situation:Right now, the 1tb hdd has Ubuntu installed. And the 320gb hdd is just a drive for stashing stuff. (It used to be the "large" drive).
But what I want to do now is:Copy all the contents of the 320gb to the 1tbFormat the 320gb as ext4 and install Ubuntu there so it is the "main" driveRe-format the 1tb as ext4 too to use it as the storage areaBut, when I try to copy the stuff from 320 to 1tb, I can't due to permission issues (I'm booting the box from the live CD).So I sudo and the files are copied.Now, when I try to verify (still booted from the LiveCD as the box itself doesn't boot yet) I'm told that I can't see the contents of the directories I just copied.So the question is when I finally copy all the stuff I want to the 1tb, and install Ubuntu, will I be able to read the contents of those directories? I mean, not as root but as my regular user, or conversely, just doing a chown -R myuser:myuser <directory> would allow me to use the files normally?
View 5 Replies
View Related
Jan 18, 2010
After burning files to DVD+RW, the owner is changed to root, and all permissions are read only. I want to periodically open these files, update them, and save to the DVD again, but I no longer have permission and cannot change the permissions since I am no longer the owner. I tried sudo commands, but get responses "Read only file system". I have erased and reformatted the DVD and started over but get the same results.
I have Ubuntu 9.04, and have tried Brasero and Nautilus and get the same problem. Am I using the wrong kind of DVD/CD?
View 3 Replies
View Related
Jul 3, 2010
I accidentally changed etc., folder ownership, and now my computer doesn't even start up. I tried starting up in failsafe mode and changing the ownership from the root console, but somehow I wasn't allowed to do that. Then I loaded kubuntu from a live disk and I changed etc ownership to root. I thought that would clear up the mess, but apparently live disk's root is not equivalent to system's: when I try to start up the computer I get a message saying the filesystem is readonly. I'm not too concerned, because I have a complete backup, but I'd rather avoid the time of re-installing all my software again.
View 8 Replies
View Related
Aug 30, 2010
I have been VERY lucky and managed to restore from a formatted ext3 /home/ partition. I used testdisk to reset the original partition which had had nothing done to it since formatting(!). However some of the file permissions are a altered and I cannot change them. I have tried "su chmod" and even temporarily enabled the root account itself and tried to alter the ownership/permissions from root 'proper' without it helping.
Here is an example of the output of ls -l
drwxr-xr-x 2 martyn martyn 4096 (date) (time) sponsors
?-----S--T 63231 92820383 44090688 4286824785 (date) (time) order.xls
The first line looks like a normally formed output and indeed is readable. The second line looks corrupted and I don't have a clue how I can reclaim this - or even if it is possible. Should I count my blessings most of my files are intact and leave those be?
View 2 Replies
View Related
Jul 6, 2011
It seems I had some kind of intrusion and I found 6 files changed its ownership to user 1035 and group 1035, I don't know how but I need to change them back to its original owner (root) because one of them is the ls command and the other is the ifconfig how can I revert them to its original state? I cant do it with chown.
View 3 Replies
View Related
Oct 9, 2010
I have my hard drive arranged with a single large ntfs data partition and a number of smaller partitions for /home etc. Here's the line in fstab:
Code:
/dev/disk/by-id/ata-SAMSUNG_HD103SJ_S246J9FZ806954-part2 /home/shmuck/data ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
But the ownership for that directory is root and I can't change it for some reason, using this line:
Code:
sudo chown -R shmuck /home/shmuck/data
It just doesn't do anything.
View 7 Replies
View Related
Aug 4, 2010
I am running a shell script as the user "redhatuser01" and this script creates a files in the home directory of another user "redhatuser02" (/home/redhatuser02/sample.txt) but the ownership of this file is currently "redhatuser01". How can i change the "ownership of this file to the user "redhatuser02"? (My constraint is that I cannot sudo as redhatuser2 and create the file).
View 5 Replies
View Related
Jan 30, 2010
Is there any working commandline alternative to # find /some/dir -group xxx -user yyy | chown xxxxx:yyyyyThe main purpose is to replace ownership and goup of certain files in subdirectories. Or nevertheless I need to write shell script for that simple operation ?
View 5 Replies
View Related
May 27, 2010
Can I assign ownership of a particular file to everybody of a group?If the file had rwxrw-r-- permissions, will every member of the local-group have owner access privileges (rwx) to this flie now?
View 8 Replies
View Related
Jul 22, 2010
Using chown as root, from the userb directory and as follows /home/userb chown -R userb:users /home/userb/* has changed the ownership of direcories, subdirectories and files of all other users. There are too many of those but only 4 users to restore the proper ownership and I do not know bash, can someone give me a bash script to do the job, avoiding the -R switch?
View 14 Replies
View Related
May 13, 2009
I just downloaded a tarball from the web and moved it into the /tmp directory as shown below:
[root@ideweb1 tmp]# pwd
/tmp
[root@www tmp]# ls -l
total 1632
-rw-r--r-- 1 carlwill users 1664897 May 13 10:35 data.tar.gz
View 7 Replies
View Related
Jan 6, 2010
Recently, I decided to wipe my system, put in two 250GB hard drives and rebuild my home file and print server. One of the hard drives is a SATA drive, and the other is not. In any event, they are identified as /dev/sda and /dev/sdb in Gparted. So far so good.
Working on (reading from/writing to) the first hard drive (where the OS is installed) is no problem. However, I have had difficulty trying to get my system to recognize my second hard drive and then allow me (nate) to read and write to said second drive. I followed these directions from the ubuntu community web page during installation:
[URL]
and setup my second hard drive with an ext3 file system. The drive is /dev/sdb. The PARTITION is /dev/sdb1. The MOUNT POINT is /media/TheBase250.
The problem(s) begin at this point. I cannot:
1. Unmount the volume at my will-error says that only root can unmount
2. I am not sure if the command sudo chown -R nate:nate /media/TheBase250 allowed me to take full ownership of said drive. It appears as if nothing changes when I run this command in terminal (even when I am root) Moreover, I cannot give myself permission to read and write files to the drive.
3. However, when I open up nautilus, browse to "TheBase250", right-click in the corresponding "explorer" or "finder" window and look at the properties for the drive, it says that "nate" is the owner (under the permissions tab), but again, I cannot give myself FILE read/write capabilities, nonetheless anyone else. When I try, all that happens is the corresponding box goes back to displaying "---"
4. Interestingly, if I skip nautilus and double-click on the drive from my desktop, again, logged in as nate (only user account created) and then proceed to right-click on the window that opens up, click properties, half the time it says that I cannot make changes to the permissions because I am not "nate." Well, last time I checked, I am nate, and this is, albeit delinquent, my computer.
5. Another piece of information that may be helpful is that if I simply right-click on TheBase250 drive icon on my desktop itself, navigate to the permissions tab, the dialogue box says that "The permissions of "TheBase250" could not be determined"
Some additional information that may be helpful is the output from my fstab file. So, for your benefit, here is the output (the stars are not part of the file, but only to help improve readability):
************************************************** *****
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
[Code].....
View 9 Replies
View Related
Jan 26, 2011
I remember back a few versions, you needed to take ownership of firefox in order for it to get updates and to save your settings. Is this needed in 10.10? Im giving Ubuntu a go again.
View 3 Replies
View Related