Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15
Hi I am trying to understand the whole permissions thing but I am afraid there is just too much detail in the howto's on the net for me to make ...
  1. #1
    Linux Newbie
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    156

    permissions for xsane as user

    Hi I am trying to understand the whole permissions thing but I am afraid there is just too much detail in the howto's on the net for me to make sense of it. I have Xsane and can use it as root but not as user. Also I created some images as root but I can't view them as user. How do I change that?

    Well I was able to change permissions for the scanner. Didn't realise that it was the device and not the app that I had to change permissions for. Then so I didn't have to scan all the images again I just opened the images in gimp and saved them in another directory and was able to access/see/edit them after that as user. I forgot that that was what i used to do. Ofcourse now that I am scanning as user I am sure that this won't be a problem anymore?
    Last edited by rapattack; 12-05-2007 at 12:47 PM. Reason: more info

  2. #2
    Just Joined!
    Join Date
    Nov 2007
    Location
    Germany
    Posts
    37
    The quick way to change the owner of a file (the one, whom the file belongs) is
    chown user: file
    or for folders with subfolders/files:
    chown user: -R /folder

    The point with the scanner you already found out. Then what's your question (it's a bit complicated to find out, what you want to know)

    Ogion

  3. #3
    Linux Newbie
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    156
    The quick way to change the owner of a file (the one, whom the file belongs) is
    chown user: file

    So I would type
    chown carla: scan.jpg ? Is that right?

    Sorry if I am not posting this right as I am still trying to get used to forums and how they work.

    or for folders with subfolders/files:
    chown user: -R /folder


    This bit I have no idea....

    The point with the scanner you already found out. Then what's your question (it's a bit complicated to find out, what you want to know)

    Yeah I kind of kept experimenting and found a website that was a bit more my level....dummies level. Ah I think I was trying to say that whatever I scan now I hope that it saves as user...so that I have access to it. Sorry there is still a lot I don't know how to do or haven't figured out with Linux. I had a friend that used to answer all my questions or come and do it for me but I am am struggling to learn by myself.

  4. #4
    Just Joined!
    Join Date
    Nov 2007
    Location
    Germany
    Posts
    37
    Yes, you would type (as root, if the file has another owner than your normal user):
    chown carla: scan.jpg

    The second one was aimed at folders. The /folder is a folder in the root-directory / (<- You know about that?). The parameter -R means, that the change owner command will be applied to all subfolders and files. If not given, only the owner of the folder, not the files in it would be changed.

    Well, when you can start xsane as normal user (for example carla), and it doesn't complain, and you can actually scan something, then the scan.jpg in this case is saved as owner carla.

    Ogion

    P.S.: In xsane you can give some nice options. when you name your file (in the main window) scan_01.jpg, then under this box there is a drop-down -menu, where you can define the step-width, put that to +1, then xsane will name the next scan automatically scan_02.jpg. Then you can set the action to perform to "Save" (it's a dropdown above the box with the name). And there is in the menus an option, where you can define the folder, in which the scans shall be saved (i can't give you the name of the option, because i use xsane in german (well, i am german...). For example /home/carla/scans. I find this quite usefull, cause sometimes i have to scan multiple pages of something, and this way i only have to change the page, and click on Scan.

  5. #5
    Linux Newbie
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    156

    Ah

    OK that's very clear...thanks so much.
    The extra tips about xsane are useful. I was wondering what the =1 thing was about!
    Ah so your German. I had a grandfather that was German and I used to speak the language very well but that was 20 years ago. Very easy language for an English speaker I think.

  6. #6
    Just Joined!
    Join Date
    Nov 2007
    Location
    Germany
    Posts
    37
    Well, not every non-german would come to the conclusion, german would be an easy language

    Glad to be helpful
    Ogion

  7. #7
    Linux Newbie
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    156
    Maybe I can just see what words we got from the German language!

  8. #8
    Just Joined!
    Join Date
    Nov 2007
    Location
    Germany
    Posts
    37
    With we you mean the english language? Even your word 'loanword' is a loanword from the german Lehnwort

    Ogion

  9. #9
    Linux Newbie
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    156
    Yes the english language is a make up of a few languages. I don't know what 'loanword' is? I know what loan means and word but the two together?

    Anyway back to the scanner there is a problem. Everytime I boot back up I have to do the command I did before to get it working. I do lsusb in the terminal and then: chmod a+w /dev/bus/usb/002/002 .....as root....according to whatever lsusb tells the where the scanner is as it changes everytime I boot back up. I gather this is not the way to make the change permanent.

  10. #10
    Just Joined!
    Join Date
    Nov 2007
    Location
    Germany
    Posts
    37
    Hmm, this could be, because this file gets created anew at every boot. You run Debian right?
    Try this as root:
    adduser carla plugdev
    (If carla is your username). I don't know, if this will help, but i (my user) is in this group (plugdev = "plug-in Devices"). I'm not sure, if this will help, but you can try it.
    To see, in what groups you are, do as user:
    groups


    A loanword is what it says: It's a word in a language, which does not originate in this language, but has come from another language and has been adopted. Has been adopted with a few modifications (in spelling and/or pronounciation). Look here, if it interests you:
    Loanword - Wikipedia, the free encyclopedia

    Ogion

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •