Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-18-2005, 08:50 PM
|
#1
|
|
Member
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 704
Rep:
|
Submount, "permission denied" when writing to floppy as normal user
Hello, everybody.
I'm using Slackware 10.1 with kernel 2.6.12.4 and Submount 0.9. Whenever I try to write to /mnt/floppy (while mounted) I get this error:
Code:
<~/tmp/submount-0.9-33/submount-0.9/subfs-0.9>
[dane@Orchestrator subfs-0.9]$ touch /mnt/floppy/foo
touch: cannot touch `/mnt/floppy/foo': Permission denied
My fstab entry is as follows:
Code:
/dev/fd0 /mnt/floppy subfs fs=floppyfss,user,rw,iocharset=iso8859-1,sync,umask=0 0 0
Any ideas? Your help is well-appreciated.
--Dane
|
|
|
|
08-19-2005, 03:07 AM
|
#2
|
|
Member
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 704
Original Poster
Rep:
|
FIXED!
Here's the solution:
Same fstab entry.
Do this:
Code:
cd /mnt
chmod 666 floppy
cd floppy
chmod 666 .
I don't entirely understand why this works, but somehow it does! (The first chmod alone didn't fix it for some reason...)
Hopefully this will help somebody with the same or similar problem.
--Dane
|
|
|
|
08-21-2005, 01:34 PM
|
#3
|
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
Thanks for the courtesy of posting your results, so few do.
I think you could combine your solution into 1 line:
Code:
# chmod -R 666 /mnt/floppy
While this doesn't do exactly what your code did, it may be what you really need -- any sub-dirs on the floppy as well the root.
However, I think the correct & permanent fix lies in your fstab; possibly in the umask, or maybe in the UID / GID. Suggest you take a look at the fstab & mount man pages. I don't do floppies or Slack enough to offer you the specific advice you really need, sorry.
|
|
|
|
08-21-2005, 09:01 PM
|
#4
|
|
Member
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 704
Original Poster
Rep:
|
Thanks for the input. Now that I think about it, I believe that that chmod command could be put into one line like you said. I tried the umask idea and for some reason "umask=0" didn't work like it should have. Oh well... :-)
Have a good one.
--Dane
|
|
|
|
02-22-2006, 01:34 PM
|
#5
|
|
LQ Newbie
Registered: Jun 2004
Location: Romania
Distribution: RH, SuSE, Slackware, Debian - would like to test many ;-)
Posts: 11
Rep:
|
Hi.
I've met about the same problem and I found a way around it: by using a LiveCD (knoppix) i read the /etc/fstab it built and tried to copy that kind of lines.
From what I found, you should use "users" instead of "user" - that way you would allow any user to umount it (not only the user that mounted it).
Also, umask=000,rw and, as a suplementary option, I saw they use exec, so it would be like
/dev/fd0 /mnt/floppy auto noauto,users,exec,rw,umask=000 0 0
|
|
|
|
02-22-2006, 02:05 PM
|
#6
|
|
Member
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 704
Original Poster
Rep:
|
Thanks for posting your solution! :-)
--Dane
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:19 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|