Ubuntu :: Put A Line In /etc/fstab To Mount One Of Partitions With Owner And Group Not Root
Jan 9, 2010
According to a couple of different places, it's not possible for me to put a line in /etc/fstab to mount one of my partitions with owner and group not root; instead, I have to mount it in /etc/fstab, then chown & chgrp to my user. That seems ridiculously tedious and silly... is it true? I'm sure a short script could be written to get around it, but it seems obtuse for Linux not to allow that to be set in /etc/fstab.
I am trying to setup fstab to automatically mount my NTFS partitions. I have used various Mount managers to create the entries in fstab. The fstab seems fine, but when mounting at boot or even via Nautilus I get the error message that I do not have permission to mount the disk.
1) Can this permission be set in the fstab file? If so what is the syntax of the fstab entry?
2) If not, is there a tool i.e. GUI to set the mount permissions?
how do i give group write permissions in fstab? i'm trying to mount a virtualbox shared folder. currently my fstab looks like this Code: Share_Name /mnt/point vboxsf rw,uid=1000,gid=1000 0 0 i want to give both the owner and group, write permissions. currently, only the owner has write permissions, and group read with these mount options.
Using: Debian Lenny. I want to mount 2 NTFS partitions in my /etc/fstab file, so that I needn't manually mount them when I want to use them. One of the partitions is the primary partition on the same hard disk as my Debian /, /home, and /swap partitions. The other is a 2nd internal hard disk.
a) Should I use ntfs-3g instead of ntfs as the /etc/fstab filesystem? I want to be able to read and write to the partitions as a user and not just as root.
b) I have read on the forum that "mounting NTFS partitions through fstab is not a great idea" - I thought that any dangers of doing so were ancient history. Why would it not be a good idea?
c) Which options should I use?
d) If I use 'user' instead of 'users' so that one specific user (me) can use the partitions, how do I specify which user name? (The man page is annoyingly unclear about this).
I have a Windows partition encrypted with TrueCrypt. If I start TrueCrypt (or RealCrypt) I can mount the partition through the GUI. before I encrypted the partition I used to auto-mount it at boot using fstab and it would appear in my places bar in the file managers. Is it possible to auto-mount truecrypt partitions from fstab?
I'm using Kubuntu 9.10. Partitions get listed in the sidebar when I open the File Manager, but they don't get mounted under /media until I click on the entries. I do not want to use /etc/mtab and mount them under folders I create in /mnt; would prefer if there was a way to mount the partitions without Kubuntu waiting for me to click on the names.
I'm really tired of having to umount under root, then mount again as a user for my external hard disk. When I'm in firefox, I like to save pages alot onto my external but I constantly have to remount because my user has no write permissions for the drive. What can I do for my device in fstab so that it mounts automatically under my user and not root?
Our office just switched from CentOs to Fedora and I'm trying to get everything set up. Everything is working so farbut im having a problem with my mounted cifs drives. They mount ok, I made directories in /mnt where the drives are readable and accessible. I'm only missing the shortcuts to the mounted drives in nautilus and on the desktop. I've checked the gconf editor and the volumes should be visible.Is there an extra option i have to add in the fstab line to get the shortcuts or something like that?
I have installed a cable that connects from the CPU's SATA motherboard connection to a removable drives' ESATA connection.I would like to be able to swap drives on the ESATA connection and have all users be able to read and write to these drives.I have created the directory /archive/ where I would like the drive(s) to mount.The drives are all formatted Fat 32 - but in the future I may use HFS for formatting.When I used the command (as root):mount /dev/sdc1 /archivethe drive was mounted (but read only)What can I use in my /etc/fstab file that will allow drives to be mounted and unmounted by all users on the system? (both reading and writing)Also, will I be able to mount and unmount these drives without shutting down? or will I need to reboot every time I want to change drives?
In Windows I used WinSCP to do all of my server work. It was easy and intuitive to use. In Ubuntu, I've been recommended to use "sftp://" for the location. I can change folder permission settings this way, but it doesn't allow me to change the owner and group, and doesn't allow to change the file permissions (folder permissions are ok though).
Can anyone point me in the right direction? How do I go about doing this? I'm much more comfortable doing it via GUI rather than terminal.
I'm trying to understand the last few hours... I installed slackware 13 yesterday in a multiboot system. On a seperate hdd from all the OS's I have my mp3 collection......I could play the mp3's as root after manually mounting sdb, but as a user I was unable to play them even though I chown'ed and chmod'ed 777 until I mounted sdb in fstab. The second drive was formatted ntfs by vista.
A bit of an oddity that I've recently run into with my storage folder in my system; it's a newly installed drive that I've set to mount at /storage. When I first tried to use it, programs that I used that attempted to write to it tossed Access Denied errors at me in their own way. Checking the permissions (at the Terminal, ls -l / | grep storage) showed that /storage was set to 'rwxrwxr--'--Owner and Group were given full read/write/execute, but Others could only read. However, my logon to my system is a member of group root. Why, then, with the above bits set, would I not be able to write to it? Changing Others permissions to rwx (and presumably rw would have worked out for me since I don't leave anything executable there) allowed me to write to it, but I don't understand why that would have been necessary. So far as I'm aware, the prior drive that was in my system--mounted at the same location--did not need this treatment.
On the server I can see the owner as vampird and the correct group, VampirD Microsoft Windows is like air conditioning Stops working when you open a window. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - [URL] iEYEARECAAYFAkxHNfAACgkQJQ+0ABWtaVlcagCdEo5kiwydUTmZ+dkD4R4jholx bi4AoO6T2OzHealqsQ+9Z42jJ7rYJ6uL =YKm8 -----END PGP SIGNATURE-----
I use 9.10 desktop with a root user and my own user (timmo), I did not create anything else. Now I check a directory (mysql databases) with ls -l and I see mysql not only as a group but also as owner. How can mysql, not being a user on my system, be an owner? In users and groups I see that all of the many groups only have two members, root and timmo. I know that mysql users and linux users are different animals but ls -l is definitely a linux command.
Did a fresh install of Maverick, all is well but if I insert a video DVD, it won't play. But if I open Movie Player, etc. as root, I can play the individual chapters - that is I need to manually choose which chapter to play, it won't start at the beginning and play to the end. Have installed libdvdcss3, restricted extras, etc. I am a member of the "video" group.Data & music CD's work fine in the drive; data DVD's are fine also. Just no DVD playing with me as the user; nor does the DVD appear in my Places menu, etc
I can't figure out how to make files have a different default owner:group.. Example:I need the users of my group called gpib, to create new files with: username:gpib, instead of the default: username:username
A colleague of mine has a Linux box (running Debian I believe) with an SVN repository on it. The repository directory and files 'owner' is my colleauge. We are both members of a group called 'users'. He manages several projects both Linux and Windows apps, while I have one Windows app. For the Windows apps, we both use TortoiseSVN via an SSH link to commit/update. Performing the command 'ls -l' shows the repository files and folders on the Linux box to have the following permissions:
-rwxrwx--- john users
However, when my colleauge commits to the repository, the permissions change to:
-rwxrwx--- john john
This then means I get 'Permission denied' when trying to access the repository myself as it appears that the group permissions have been overwritten with only 'owner' permissions. To fix this, a 'chown -R' command is applied to the files/folders to set the permissions back to owner/group, but each time he writes to the repository, the issue repeats.
The server is named alpha and is running Archlinux. It is exporting a directory named /files. The server is a couple of years old and I have accessed it extensively from clients running Arch, Suse, PCLinuxOS, and maybe some others, all with no problems. The clients (3 of them) are new installations of Linux Mint 10 (Julia). When I mount the nfs all of the nfs files are visible as expected. However, the owner/group is drastically different than on the server.
I might add that I have set up user id's and group id's the same. My user is 1003 on all systems, and the users group is 100 on all systems. When I am on alpha (via ssh), here is a partial file listing.
Code: [dick@alpha dick]$ ls -l total 9740 drwxr-xr-x 3 dick users 4096 May 16 2009 airplane -rw-rw-r-- 1 dick users 240978 Jun 27 2009 Alice Grad 1934.pdf -rwxr-xr-x 1 dick users 444 Jul 8 2007 alpha2ast -rw-r--r-- 1 dick users 444 Sep 2 2009 alpha2charlie
If have searched the Mint forums, LQ forums, and google in general. I must be missing something in my search because I can't believe that no one else has this same problem and I am having it on 3 different boxes.
have recently installed ubuntu server on a new machine. I have added 3 users and I have assigned them to a group.The three of us work together on a lot of stuff so what I would like to do is to have a specific folder made the groups folder. All files that are created or moved into this folder should automatically be owned by the group. I.e. all 3 of us should have the right to read and write to these files.
I'm setting up an Ubuntu server to replace my aged Pentium IV Slackware box. It's a Dell Inspiron 560 with modest core-2 duo processor, 8 gigs of ram, and a pair of good sized hard disks. I came upon a good deal on a couple of 40gig Intel SSDs. I'd like to use one in the server. I'd like to use the SSD for the relatively invariant stuff, because they write slow, and are life-limited in the # of writes. So: /bin /usr/bin /boot /etc /lib /usr/lib /usr/local/lib /mnt /opt
The best way IMHO to achieve this would be to make the SSD the root, and mount hard drive partitions/filesystems to it to places such as: /var /media (Here you read and write giant files. Hard disks do this just fine. One will work especially fine if one particular hard drive is dedicated to this.) /root /home /tmp
A quick "df" yields a list of filesystems. There are four that are not tied to any device! /dev /dev/shm /var/run /var/lock
(df also discloses that the root filesystem is presently standing at 502megs. Guess it'll fit in a 40-gig SSD). These deviceless filesystems worry me. Are they created magically on boot? What's required to make the system magically create them on boot? If I copy the filesystem over to the SSD and redo the grub config, will it Just Work? Web searches reveal subtleties WRT mount points.
In my /var/www directory, I have everything set up with: user: www-data group: developers directories: chmod 570 files: chmod 460
Everything seems fine. Users from the developers group can edit files and all, but now we began using the Git repository, and whenever a user edits a file (ie. Joe who is a developer,) file permissions get screwed again. Now they're: user: Joe group: Joe directories: chmod 755 files: chmod 644 How can I fix this so permissions remain the same?
I run a headless Ubuntu 8.04 server, which acts as a web, email and file server. I am sticking with 8.04 as it is a LTS release and will upgrade to the next LTS when it is released.
I have two external USB drives, that I need to mount at boot. I have been using /etc/fstab up until now, with the following entries:
However, as I gather from doing searches is quite common, occasionally I get an error during boot (causing the system to drop to a recovery shell) because the USB drives take time to wake up and the system hasn't found them by the time it reads /etc/fstab.
From doing searches, it seems there is nothing you can do to fstab to fix this, so you need to mount them using an rc.local script instead, using:
The problem is, as I have two USB drives, their /dev/sdxx location changes between boots. I thus want to use UUID codes as I do in fstab, however I haven't found anything about this.
Does anyone know how I can use the mount command and UUID to mount a drive in rc.local and what options I have to use the mount the drive with the same options that I am using in my fstab entry? Obvisouly, I can't refer back to fstab using the mount command, because then I will still get the boot error issue if they are listed in fstab. And there is no space internally for the USB drives as there is already two internal drives.
When I installed Ubuntu, I was asked to enter a user name and password. I chose one that would be a sort of "administrator alias" and gave it a strong password. This is my "su" name and password. That works fine for most things, such as installing software, etc.. Every so often, however, something comes up that can only be accessed by "root" and that is not me, even logged in with my "administrator alias" and password. This happened when I inserted a USB flash drive and tried to copy some files to it that I wished to transfer from my desktop my laptop. The only way I could do this was to format the flash drive. and then add my files to it.
This morning I inserted the flash drive and tried to add another file to it, using "copy" and "paste". Again I got "permission denied" and the owner of the flash drive, seen as "usb0", was again "root", and I could not change its permissions, because I am not "root". It also says the device is not listed in etc/fstab. I have read the Ubuntu paper on mounting USB drives, but I'm not sure that applies here. The drive seems to be mounted, but with the wrong owner.
This problem has also occurred with some software when I tried installing it. I usually give up and don't install it. This flash drive problem, however, is driving me crazy. I need to transfer those files. Is there something I'm missing? Despite installing and upgrading Ubuntu on 2 machines, I'm still pretty much a newbie, and if it involves using the terminal, I need step-by-step instructions,