how to change automount permissions in Ubuntu
Hi All,
I tried posting this in the Ubuntu part of the Linux distributions, but so far no help there. Maybe someone here can help? Just starting to try and learn/use Linux. Working through a problem with Ubuntu. Being a NOOB, I am not sure how to best describe what I am dealing with. I have a wireless device that streams music from my PC to home stereo. This device uses some type of server software. I knew just barely enough to use the instructions on the device web page to add the installation to synaptic and get it installed. Very cool. I have all my music files on an external HHD, formated NFTS. I can see the files, and Totem will play the files. The problem is that I need to tell the server where to find the files. I browse to the folder, copy and paste the file path to the server settings, and get the message there is no such directory. In this thread: http://forums.slimdevices.com/showthread.php?t=35254 , the folks there are thinking it is an issue of the server not having the correct permissions for accessing this external drive. Keep in mind most of this is still over my head, I am so new to Linux and command lines. IF I understand correctly what folks are telling me, Ubuntu sees my server (slimserver) as a user, and that user needs the proper permissions to access the drive. Now I don't know if that makes sense to anyone but me, but I think what I am attempting to learn, is how to set automount permissions for this drive, and hopefully any other USB drive. It was explained in the other thread that I do not want a permanent mount, or permissions for this drive only, as I will want to be able to also use USB for camera, thumb drive etc. So far I am very happy with Ubuntu. I also have PCLinuxOS installed, but have been stuck with this one problem with Ubuntu. I definitely need to figure out this type of issue in order to use Linux as my main OS. Should I post this in the newbie forum instead of the Ubuntu forum? Thanks for any help. |
Quote:
Quote:
Quote:
sudo chmod 777 /media/usbdrive This gives everyone r/w permission. |
User groups does not show slimserver.
The device is a SlimDevices Squeezebox. Here are the replies I got form the command lines you suggested: mike@mike-desktop:~$ lsusb Bus 005 Device 002: ID 136b:cb07 Bus 005 Device 001: ID 0000:0000 Bus 004 Device 001: ID 0000:0000 Bus 003 Device 001: ID 0000:0000 Bus 001 Device 001: ID 0000:0000 Bus 002 Device 001: ID 0000:0000 mike@mike-desktop:~$ ls -l total 10388 -rw-r--r-- 1 mike mike 13574 2007-05-18 17:09 command line replies.odt drwxr-xr-x 2 mike mike 4096 2007-05-14 20:11 Desktop lrwxrwxrwx 1 mike mike 26 2007-05-10 12:30 Examples -> /usr/share/example-content drwx------ 2 mike mike 4096 2007-05-11 19:36 memo_file drwxr-xr-x 3 mike mike 4096 2007-05-12 19:01 music drwx------ 2 mike mike 4096 2007-05-11 19:34 MyPDA drwxr-xr-x 2 mike mike 4096 2007-05-12 18:35 test files -rw-r--r-- 1 mike mike 5286856 2007-05-14 20:02 translog.20070514200145.log -rw-r--r-- 1 mike mike 5286900 2007-05-14 20:16 translog.20070514201022.log mike@mike-desktop:~$ fstab bash: fstab: command not found mike@mike-desktop:~$ mtab bash: mtab: command not found mike@mike-desktop:~$ sudo chmod 777 /media/usbdrive chmod: cannot access `/media/usbdrive': No such file or directory mike@mike-desktop:~$ sudo chmod 777 /media/SimpleDrive chmod: changing permissions of `/media/SimpleDrive': Read-only file sys SimpleDrive is the USB external HHD. Does this help to narrow the issue down? Thanks for the help. |
Quote:
Quote:
<looks ahead> ls -l /media ls -l /media/SimpleDrive Quote:
cat fstab cat mtab Quote:
Don't see how this is a read-only file system... how is it formatted? sudo chmod 555 /media/SimpleDrive fdisk -l |
OK, was able to get issue with server kind of straightened out.
A person posted a command line that would change the umask of the drive to 022 so all can read/write. Trouble is, he told he knew it did nothing for automount issues. So every time I unplug the drive, I have to unmount and remount with his command line. What I need is a way to change the automount options for Ubuntu 6.10. I am told this is not an issue with V 7.04. Any suggestions? Thank You. |
Please quote the successful commandline and/or reply to questions in my last post. Preferably both.
|
mike@mike-desktop:~$ ls -l /media/SimpleDrive
total 16 dr-x------ 1 mike mike 4096 2007-05-08 18:38 back up dr-x------ 1 mike mike 8192 2007-05-09 17:20 music dr-x------ 1 mike mike 0 2007-04-16 18:05 RECYCLER dr-x------ 1 mike mike 4096 2007-04-15 18:14 System Volume Information mike@mike-desktop:~$ sudo chmod 555 /media/SimpleDrive Password: chmod: changing permissions of `/media/SimpleDrive': Read-only file system mike@mike-desktop:~$ The external is NTFS, as I am just beginning to see if I can migrate to Linux. Almost to the point where I need to slow down, use Linux as I can until I learn more. This issue has me stumped. I got some links from another thread: http://www.debian-administration.org/articles/127 http://www.linuxhq.com/lg/issue24/nielsen.html As a NOOB, still struggling to use command line, but will try reading through these articles. Not sure if I have given you the info you need. Thanks for helping. |
All times are GMT -5. The time now is 03:04 PM. |