General :: Fedora 15 To Automount Media With Non-root Permissions?
Jun 13, 2011
I'm Ubuntu ex-fan (because of gnome-shell).
On Ubuntu, there was this very sane feature (for laptop/desktop user): when you insert a thumbdrive or external usb media, the system mounts the media and sets all the correct permissions for the current non-root logged in user.
What do I have to change/edit/configure to make Fedora 15 behave like this?
When I insert a CD/DVD, it is auto-mounted in /media, but the folder beneath /media has permissions of 500. This is a pain when sharing the drive over the network using CIFS. Anyone know how to change the auto-mount permissions to 555?
New to Linux, want to tinker around but cannot figure out how to get root permissions to my login, or login as root (can do this in terminal, but that is not much help for the rest of the environment I am working in!).
I need to use Live Media to make changes to a hard disk drive. I tried to sudo to no effect.
Seems like it would be troublesome to authorize root access on Live Media or have sudo allow commands such as pvcreate,lvcreate,vgcreate, especially if the hard disk is not encrypted.
I was wondering, what if you had a flash drive formatted with an FS that has UNIX permissions. Then what if you copied some of your files onto it. And then put it into another computer that has a user account by the same name. WIll the user be able to access the files?What if you named your own user differently on the other computer, will you be able to get your files?
I have Suse 11.1 and am running a customized server on it that will take care of mounting/unmounting media (DVD, USB key, etc) on its own ..How can I get Suse to stop mounting the media automatically when I insert a dvd into the drive or plug in a USB key? I already got it to stop opening a window showing the contents, now need to get it to stop mounting automatically ..
I've hit a wall here; I'm attempting to find some way by which to view files and cd into directories on a device mounted read-only. So I need the permissions to read, write, execute (and the same with directories), but chmodding is out of the question because I don't want to alter the drive one iota.
I guess what I could do--what I was thinking of initially--was to dupe the whole drive and then mess with permissions. This wouldn't affect the original (actually I'm working on a duplicate of the original, but I'm treating it as if it were the original) but I was hoping for something that would maintain data integrity. This is a forensic application and not altering the data is very important.
I just installed openSuse 11.1 and it automount the media and opens a window for it. I got the window to stop opening, how do I get it to stop automounting the media?
This appears to be a simple problem, but I struggled my way around google, trying to figure out the right words to search for, with no real success. The problem:When I plug-in any usb device or an external hard disk, my RedHat automatically mounts it to /media/<device_name>. Unfortunately, it's owner and group are both root, whereas, I would like to add other users to have write access (say, all users in a group usb_group to be able to write stuff in it). Currently only read access is there for others. I would like to change it to write access to a particular group and I can add the
after a fresh install of fedora 13 I was expecting a few niggles and here's one, I've googled and read man chmod and chown and there seems to be plenty of conflicting advice, oh yeah the problem, I installed a package called get_iplayer (allows downloading of bbc iplayer content) via yum, only thing is I can only run it as root whereas in f12 I could as a normal user. It's probably the simplest command to change permissions, also I can't find any info on what the different numbers mean (775 777 etc)
I have 4 machines; all multiboot. I want each machine to have full rw access to file shares on each other machine, AND, full rw access to the other partitions on the same machine home folder for UNbooted OS's. I imagine Samba will NOT handle all these configurations? What else do I have to do, so that, for example, if I have 2 machines on, and I boot up a third machine in another room, it will auto mount the other 2 machines' shares, and it export it's own shares to the other 2 machines? I want also each machine to have full rw access to shares on the UNbooted partitions of each machine.
Get Fedora 11 and Apache installed. Open web browser and enter http://localhost and I get a "Fedora Test Page" that shows Apache is working (according to the info on the page). It says to put my web documents in /var/www/html/ ... however, as a user I cannot access it (put anything there) and I can't change the permissions (belongs to root) I'd like to run this as an intranet web server in our small ( <100 users) company.
I've got some troubles when I try to install Vim on Linux while I don't have a root account. The error information is shown below: How can I solve this? Can I install it in another directory other than /usr/local/bin/vim?
Nothing happens when ordinary users plug in a USB thumb drive or insert a CD into CDROM drive. Works fine for root. After root mounts the drives then all users can use them. How can I enable mounting/unmounting by all users?
I was unable to change the permissions for root node and for other users also. WE have tried all the possibilities like chmod and chmod -R 777 filenem. But we are unable to change that.
when you attache a pen drive with windows you can drag from the pen drive to the desk top, and visa versa. with Linux logged in as normal user I can drag files from pen drive to Desktop but not the other way around. my pen drive is TITANIUM and at /dev/sdb1 mounted at /media/TITANIUM so I have to use
cp /home/user/Desktop/file /media/TITANIUM as root
If I log in as root I can drag files from pen drive to desktop and also from Desktop to pen drive. is there an easy way to give permissions for normal user. I had a look a groups and it has scanner, printer etc listed ,can I amend groups somehow to enable same permissions for pen drive access as root?
Accidentally I changed the ownership of all the directories under / to my own instead of root:root. Now I am unable to use sudo and many bad things are happening. Is there a way to revert the changes or change the permissions again to root:root or make sudo work ?
How do I configure permissions and ownership [aka, access control] for USB and other "media" drives? In general, I want the plain user to have read-write-modify access. For the long haul, I would prefer some sort of config table that says this media gets those access settings on an individual basis.
While on the subject of "media" drives, how do I configure where a drive gets mounted? It appears that the defaults is /media/someString where "someString" is either a generated string or the volume label. Is this accomplished by a script somewhere that I might modify or configure?
I login using my personal, non-root account. When I connect a USB or other "media" drive, the permissions and ownership are such that I cannot use the desktop tools to alter the drive contents. Also, I need to guess where a given drive contents can be found.
I'm trying to familiarize myself with LXDE to help a friend of mine and one thing I just cannot solve, despite many googles, is how to allow a non-root user to auto-mount drives in the left-hand pane of PCMANFM.Everything works just fine as long as I have the root passwd. Not a huge problem but very irritating none-the-less.
I wanted to know whether its possible to prevent some user from playing mp3/any other media files, using the chmod command? Are the read and execute bits meant only for text/office files?
i want to know the risk with auto mounting flash drive as a root user,if for example there is a Usb Flash drive inserted into the system and we login into root unknowingly, and this flash drive contains an autorun script which calls a new script that can place viruses in your system, since you are in the root it will not even prompt for password and if the script is fast enough you will not even see it executing.
# external hard drive UUID=4DDD273633F3859D /home/ross/external ntfs-3g auto,exec,user,uid=1000,gid=100,dmask=027,fmask=137,utf8 0 0
When I plug in the drive with this UUID, I get the following error:
Code:
Error mounting: mount exited with exit code 1: helper failed with: Unprivileged user can not mount NTFS block devices using the external FUSE library. Either mount the volume as root, or rebuild NTFS-3G with integrated FUSE support and make it setuid root. Please see more information at [URL] Is there any way that I can mount this drive (which must be ntfs-formatted) without root permissions? I have googled this error and it seems that many other people are having this same problem, but I can't find a real solution. Most people suggest just reformatting the drive.
I'm going traveling and I had the bright idea of putting my sensitive and irreplaceable files on an sd card. Then if I leave my stuff in a sketchy hostel for the day, I can easily take the card and might lose only a replaceable netbook. The problem is that I want some files to have 600 permissions (rw-------), readable and writable only by owner.
But no power on earth seems to be able to force a fuse-ified filesystem to pay attention. Whether I try "chmod 600 filename.txt" as the owner/user or as sudo makes no difference. Nothing works. The sd card is mounted with a line in /etc/fstab:
So the user owns the files and they have typical permissions instead of the automounted default of 700. That's all very nice, but I'd like to be able to change permissions on just a few files!
behavior in 9.04:plugged in a disk, mounted it and it as readable to the world.this is intended because it is shared via samba.behavior in 10.04:the disks have 700, meaning, they are not readable by samba.this is a problem.this is the best solution I've found so far:http://www.mail-archive.com/ubuntu-u.../msg10951.htmlexcept, that the mentioned means to fix this are gone.(gconf-editor -> ..., storage and preferences -> removable media)after 3 hours of googleing and reading I'm rather upset about this bug.so please, if you are thinking of suggesting fixed entries in the fstab or anything else that will not work with every media that is plugged into this box, just close this tab.
I'm very new to Linux, i'm running Ubuntu and i'm trying to install a program. In the instructions it says "Check that you ARE NOT root, never run similar tools as root! just change file permissions". How do i check if i'm root or what am I supposed to do here?
How to enable Root login...i cant copy or move something on the HDD...I have administrator rights and password for root but i cant change permissions for the HDD without login on root and root login are not allowed .