Ubuntu :: Change Default Permissions On USB Mounted Devices
Mar 8, 2011
I have a few websites that travel along with me in my usb stick, and I want to have read and write permisions to files on my usb by other users (i.e.: www-data) actually they have 0700. I'm running maverick (linux mint Julia).
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 have mounted samba volume and I need to have write permissions for every new folder that's being created (currently, by default, on every newly created folder i have only read and execute permissions).I tried changing umask, but with no effect on mounted folder, umask changed only for local filesystem. I tried mounting with umask option, but with no effect again.I'm using ArchLinux on this machine, and I installed samba using default package manager (pacman).
I'm having a problem changing permissions on a network share. The share is mounted on my server using cifs. It has been working perfectly for a week or more. I use a bash script to copy files from a temporary folder on the server to folders on my HTPC that are mounted on my server.The server is Ubuntu Server 10.04 and the HTPC is XBMC Live Dharma.
The problems began when I added chmod lines to my bash script to temporarily change permissions. I had the entire mounted share set to 777 on the server, and I was worried that I might accidentally delete the files or something, so I set it to 555 and then modified my script. This was not intended to be a permanent solution, but I wanted to use it as a band-aid solution until I figured out how to do it properly. The mounted folder is called "tabitha" and it is mounted in the home folder of the user "turvy" on the server.The script looks like this:
I automount two NTFS volumes on login. These display in both the desktop and the Unity launcher.
The first time I clicked one of them in the Unity launcher, it asked if I wanted to use Nautilus or Thunar. I chose Thunar.
Now, when I open the volumes in the Unity launcher, it always uses Thunar. When I open the volumes on my desktop, it always uses Nautilus.
Is there any way to standardize these, so that I use either Thunar or Nautilus, but not both? And how do I switch back and forth? Where can I reset the Unity launcher to use Nautilus again?
I want to change the default mount options for removable devices, especially vfat devices, to have shortname=lower instead of the default shortname=mixed mount option. I googled around, and found references to /system/storage/default_options/vfat/mount_options gnome configuration option, but I don't seem to have this option set, actually, I don't seem to have a /system/storage tree in gconf-editor at all. searching in gconf-editor doesn't really yield any results.
my dad has been using Ubuntu for a few weeks now and likes it, however he's having some issues regarding read-only files. He's a doctor and frequently has to download word files to edit, however they always download as a read-only file. While this isn't particularly difficult to do, he finds doing it tiresome and because he isn't the most proficient PC user, may have difficulty with it when I return to school after the summer. I was hoping that there's some way to change the default settings so that all files downloaded are writeable.
Additionally, he has a number CD-RWs which he both retrieves files from and stores them to, however when trying to access these CDs he is told that they are read-only. Right clicking on the CD and trying to change the access permissions doesn't work (says that permissions can't be changed because the disc is read-only).
I recently installed a new sound card, and I need to find out how to change the default device. Currently, I'm dual-booting Windows, and I had re-enabled the on-board audio in the PC's bios. After doing that, Debian started detecting that on-board as the default sound device. Is there a way to set my sound card to be used instead? I found out that the 'alsaconf' utility has been phased out. I"m currently running Debian testing, for amd64.
I'm on OS X and mount a network share from my Windows XP machine. Files by default have the rwx (700) permissions. What OS X option I need to change, that the files will have rw (600) permission?
Maybe this question also applies for Linux mounting a Windows network share.
I'm new to Debian. I've read the documentation on this but it is too heavy for a new user to understand. I would like to change the default permissions for newly created files/directories.
I want all newly created files by 'user1' to have the default permissions of: 1. "owner can read and write" 2. "group can read and write" 3. "other can read only"
Permission 1 and 3 are already default. But I would like number 2 to be default as well. (the current default for group is read only).
I have an ntfs partition that I wish to access as a normal user(non-root). For this I did the following. As root I created a folder /windows and did a chmod 777 -R on /windows. Then I added the following line to /etc/fstab
Now, the partition is mounted alright but the problem is that when any other user (non-root) creates a files in /windows (say by executing touch newfile) the newly created file has the owner and group set as root. The non-root user can create the file and he can also delete the file, however, he cannot change the permissions of the file and also the owner:group is always set as root:root. How do I get across this problem, i.e. how do I mount a partition, so that a non-root user can also change the permissions and ownerships of the files he creates.
My computer has three drives: one with windows7,one as a storage drive, and an ide drive. I have ubuntu 10.04 installed on a seperate partition on the storage drive (+swap partition).I have "/etc/fstab" automatically monut these drives on startup:
I have recently mounted my iPod Touch using ifuse, and it works with gtkpod and I'm very pleased about that! However, I'm interested in finding out how openSUSE recognises what devices are mounted? Because the device manager in the task bar doesn't recognise that it's mounted... Dolphin doesn't recognise it and neither does Amarok. Only gtkpod, which is good, but I want other applications to recognise it. Do I need to mount it in a specific location? Currently it's at /mnt/iPhone. Or do I need something in fstab (I'm just guessing here).
last 3 rounds of updates to my Lucid system produced various problems, though each a solution to the previous issue. So I decided to upgrade to natty, and get new problems. LOL.
SO, my USB mouse and keyboard no longer mount on boot. If I unplug the keyboard and mouse, then re-insert them, they work fine.
I have 3 disks in my PC which are partitioned equally as I use them for Raid 1.The first partition on every disk is a simple ext2 partition for booting. No Raid there. So I mount them as /boot and /boot2 and /boot3. So I can backup my /boot to the other boot directories. That worked for some month and this morning I just want to look if all directories have enough free space left. So I did a df -h and got this:
Code: Dateisystem Grove Benut Verf Ben% Eingehängt auf /dev/mapper/system-root 6,0G 301M 5,4G 6% / udev 1,5G 292K 1,5G 1% /dev /dev/sdb1 122M 29M 87M 25% /boot /dev/sdc1 38M 21M 16M 59% /boot2 ... /dev/sda1 122M 29M 87M 25% /boot As you can see /dev/sda1 and /dev/sdb1 are both mounted on /boot
Here is what mount says: Code: /dev/sdb1 on /boot type ext2 (ro,acl,user_xattr) /dev/sdc1 on /boot2 type ext2 (ro,acl,user_xattr) ... /dev/sda1 on /boot type ext2 (ro,acl,user_xattr)
This is no Problem for me as I could just remount it correctly, but I would like to know if this problem is known. I did not change anything by now and this PC is a server which is running 24/7, so I can deliver more debugging Information if someone is interested.
This is probably me looking but not seeing an option somewhere. I re-installed 10.10 over 10.04 by formatting the root partition but keeping the home partition the same, to save me a lot of work. (64 bit) However, now when I mount a CD, DVD or USB stick, they don't appear in Dophin's "Places" window. What have I missed please?
I have a sony x10mini and it is correctly seen in nautilus and shotwell. But nor in banshee 1.6 (testing and sid) nor in 1.9 (experimental) is mounted. Fact is that I know it works for sure in fedora and debian so I wonder if it a problem of some dependency missing, configuration or permissions. I use the testing distro by the way...
When booting opensuse 11.2 or 11.3 there is automatically created a folder in /media to mount my external usb drive (in /media/disk). The problem I have is that sometimes these folders are not automatically removed when I shut down. On the next time boot this device is mounted at /media/disk-1 or /media/disk-2 which throws off for instance Krusader or Amarok. Also the folders that are not removed seem to have really strong permissions such that I can't even browse into them in Krusader or Dolphin. I have to manually clean the /media folder as super user so that when I reboot, they are in /media/disk. Does anyone know how to ensure that opensuse removes the folder(s) upon shutdown?
Sometimes when I try to display the mounted device in linux it displays devices which are not currently mounted. I want to correct this this using script.
having my data backed up properly, but it's also in different places (e.g. photos and music on separate flash drives), so I have a few rsync's that I can execute manually, drives are mounted. Unfortunately, it gets confusing very quickly, I'd like a simple bash script that goes something like this (this pseudo-code would be most like REXX):
pair.1 = (/dev/sdb1, /dev/mmcblkp01) pair.2 = (/some/other/device, /yet/another/device) for i = 1 to #pairs
[code]....
Seems simple enough, but I've never written a bash script and wouldn't know where to start.
Finally I managed to install my printer/scanner drivers.The last thing I need to do is to add the following two lines to 40-libsane.rules (which is a read only file):# Brother scanners ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes".How can I change permissions for this file or add these lines without changing permissions?
I am running Ubuntu Server 10.04 LTS with Kernel 2.6.32-22-generic-pae I was originally using usbmount to autmont the western digital external usb drive I had attached to the system and it was working great. However, while I was adding files to the drive i deleted all of the directories and files that came on the drive out of box such as 'autorun.inf' and an autorun directory containing an icon for the drive.. when I rebooted the drive was no longer mounted, I tried to un/reinstall usbmount a few times but it still didnt work, so I wound up adding the drive into my fstab, my fstab line reads like this
Ubuntu 9.10. I have a problem - when I mount other partitions of my hdd or the system automounts usb disks these are mounted in /media directory with permissions 0700. So there are two problems there: - When I switch user on my desktop to another that user can't read data from the usb disks - I can't share data through network because smbd doesnot have read permissions on the created mount points
I think editing /etc/fstab is wrong way, there would be more right way to change permissions on mount point. I tried to change/add parameters umask, allow_other in gconf-editor (/system/storage/default_options, subsections vfat and ntfs-3g) but that does not show any results. Article [URL] recommends Open Places → Computer. Every volume except the generic File system one should have a Drive and Volume tab in its properties dialog where you can set mount options. But I did not find those tabs. Where should I set option to mount usb disks with permissions rwx for every user of my system?
I have a server running RHEL6 and a virtual machine also running RHEL6. I created a directory /home/data on the server and another on the VM. When I mount the host directory on the VM, I am not able to change the ownership/permissions through the VM no matter what. The ownership is set to "nobody" and I can't even change it to root.
When I plug in a USB GPS device, using cypress_m8 module, is creates /dev/ttyUSB0 with read/write permissions for owner,root, and group, dialout. My question is really just where are the rules for setting these permissions and how exactly are the owner and group names set when /dev/ttyUSB0 is created, i.e. a serial USB device is plugged in.
Sorry if this is the wrong section for this type of question. Anyway, I have two servers running Ubuntu 10.04. Server A has an NFS share that is mounted on server B, and the former has this share set up with specific permissions for a group called netusers. This group basically grants its users read/write permissions, and blocking all of files from anyone who's not part of the group.My question is this: how can I set up the permissions on server B, such that if I was to add a new user on server B, he would have read/write access to the share? I tried adding a counterpart group called netusers with the same permissions on B, but that didn't work.