LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-17-2003, 05:25 PM   #1
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Rep: Reputation: 30
do you know your rights?


I recently got my kodak digital camera working with slackie! SWEET! I still have yet to set it up so that normal users can use it, but with root it is fully functional.

So, with su i was able to xfer the pictures into my users home directory. As expected, the user account was unable to view the pictures, or even get into the directory that was created for the pictures.

As root, i did a chmod -R 666 ./pictures, which should give everyone read/write rights right?

Couldn't get in.

As root, i did a chown -R userx ./pictures, which changed the owner to the user, and should get me in.

Couldn't get in.

So, as su, i loaded up konqueror, went into the properties of the file, changed the group to users, and found another option "allow users to enter directory" or something to that extent. Nobody never told me about that option.

After that, i was able to view my pictures. My question is, what should I have done? ok.. i should've set up my camera correctly before rushing into this, but... what should I do if this situation comes up again?

Thanks,

Murray
 
Old 11-17-2003, 06:32 PM   #2
tearinox
Member
 
Registered: Aug 2003
Location: you dont want to know
Distribution: Gentoo 2004.2, Slackware 10, Windows XP, Windows 2003 Server
Posts: 348

Rep: Reputation: 30
I prefer using the rwx way.

chown murray_linux pix
chown <user> <dir>
chmod a+rwx pix
chmod <rights> <dir>

chmod goes like this: r = read w = write x = execute a = all u = user g = group o = other

you could also do chmod o-rwx to remove other user rights but thats your decision.. gl
 
Old 11-17-2003, 08:00 PM   #3
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Also, don't forget that you have to have "execute" permission for a directory before you're allowed to view its contents. So using chmod 666 on a directory will make all the files accessible, but users still won't be able to view the directory listing.

I used to always use the numeric chmod arguments, but also have found that r/w/x are much better, and more flexible, but it's a matter of preference
 
Old 11-17-2003, 08:39 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Re: do you know your rights?

Quote:
Originally posted by murray_linux
After that, i was able to view my pictures. My question is, what should I have done? ok.. i should've set up my camera correctly before rushing into this, but... what should I do if this situation comes up again?

Thanks,

Murray
If your camera is recognised as a USB storage device
it's a piece of cake :) ... on my old 8.1 and with usbmgr
I get it mounted, and r/w-able for users in /camera ...

My fstab entry looks like:
/dev/sda1 /camera msdos umask=000,user,users,rw 0 0

And the config for usbmgr looks like:
Quote:
/usr/local/etc/usbmgr/mount_cam
Code:
#!/bin/bash
/sbin/mount /camera
and
Quote:
/usr/local/etc/usbmgr/usbmgr.conf
Code:
# Photosmart 720 [HP]
vendor 0x3f0 product 0x4002 script mount_cam module scsi_mod, sd_mod, usb-storage
You'd need to check the vendor and product ID's for
you cam, of course :)


Cheers,
Tink
 
Old 11-20-2003, 05:28 PM   #5
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Original Poster
Rep: Reputation: 30
from gphoto's documentation:

"Now that you've got your basic USB system working, you have basically two options to allow user access to USB devices on your Linux system:

allow a certain user and/or group or the whole world access to all USB devices by mounting /proc/bus/usb[1] with adequate user and/or group permissions (default is world-readable and root-only-writable, which is good) "

I don't see an entry in /etc/fstab for that. Should there be? What would it look like if I wanted to give users access to it?

Thanks again!

Murray
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
The rights Gins Linux - General 11 06-08-2005 03:25 PM
Getting SU rights AmdMhz Linux - Software 2 04-13-2005 01:44 AM
Directories rights bally Linux - General 2 11-01-2003 02:04 PM
Rights BoonZie Slackware 8 01-04-2003 06:48 PM
Access rights sore Linux - Newbie 6 01-02-2003 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration