SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have an usb photo camera.
I'm mounting it at /mnt/photo
using mount /dev/sda1 /mnt/photo
but I cant access this directory with an user's account
I tryed to make an entry in the /etc/fstab
/dev/sda1 /mnt/photo auto noauto,user,umask=000 0 0
but nothing changed
Do you have any ideas how could I access my /mnt/photo with an ordinary users account
Thanks
do you have the correct permissions set for the mnt/photo-dir? Do this:[list=1][*]cd /mnt[*]ls -l #gives u a long description of the contents[*]#see if the photo-dir has permissions set for your user, if it doesn't then change the permissions, while being root, by typing:[*]chown your_user_name photo #this changes the photo-dirs user(owner) into your_user_name[/list=1]
Now you should be able to browse and change that dirs contents with your_user_name. Also you might want to check that umask -setting you have in fstab. Setting the umask into 000 means not giving anyone any permissions to the directory. I think you should set a value like 660 to the umask.
I can't change the ownership of the directory
chown: operation not permitted ... etc.
but I don't want to change the ownership
any other ideas?
It's very difficult to understand the permissions in the Slackware
are you logged in as root , when you try chown?
I believe the only solution to your problem is changing the permissions.
Aren't the permissions the same in Slackware as they are in other distros? The basic permissions are VERY easy and you should learn to understand them if you want to use linux more efficiently. Look for a linux tutorial on the net or type man chmod in the console to get more information about permissions.
I did everything exactly as you said except umask=660 because it's bullshit
but the result is different every time
if I have been included this entry in the fstab when I chown of photo, I recieve
no such file or directory,
if I haven't, I'm changing the ownership, but when I browse to this directory, I recieve
you don't have permissin to browse photo
There's no sense changing owner ship because I want and other users to access this directory.
I want root to be the owner of the directory, but to allow other users to browse it and read and write into ti.
I have vfat partition on my disk and I mount it with this entry in fstab
/dev/hda1 /mnt/hd vfat defaults,umask=000 0 0
before I added umask=000, the situation withj this partition was similar
so I need the same for my /mnt/photo except mounting on boot, because the camera is not connected all the time
I want to use this device same way as cdrom and floppy
tell me how
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.