permissions are a pain in the arse

Discussion in 'Linux, BSD and Other OS's' started by zeus, Jul 29, 2007.

  1. zeus

    zeus out of date

    Likes Received:
    0
    Trophy Points:
    36
    Im getting very tired of being told im not allowed to do stuff by my pc.

    Why aren't I allowed to copy files from or to my windows pc and mobile phone? How do you make it so I can?

    Ive been typing in sudo thunar into the command line which works but I shouldnt have to.
    Also how do you get get permission to add files to a compressed folder? Even if I type sudo xarchiver im told I dont have permission to compress files. I want to email some pics but cant.


    If the computer keeps saying no its back to windows for me. Being told you dont have permission to access my own pics takes the piss.
     
  2. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    You need to change the permissions of the file or directory using chmod. If you do not own it, you have to do it either as root or take ownership.

    To change using chmod do
    Code:
    sudo chmod a+w -R directory
    to allow everyone to write to the directory recursively (including all sub-directories). use - to take permissions away and g & u for group and user modifications. Read up on chmod for more info.

    Another way would be to take ownership of the directory, do
    Code:
    sudo chown amara:amara -R directory
    This changes ownership of directory to the user amara, and the group amara. Use ls -l to see a detailed view of items in a directory, including permissions.
     
  3. Tech

    Tech Padawan

    Likes Received:
    0
    Trophy Points:
    0
    Addis is correct in what he says. Damn good advice:) . However if you want to write to your Windows partition, which i presume is NTFS you will need to install ntfs-3g. Both FAT16 and FAT32 should already be supported out of the box.

    On a personal note I'm surprised you can say that given the needless compexity that NTFS permissions seem to drag aound with them. I've just been reading about them in the last few days and the first thing that went across my mind was WTF!!!
     
  4. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    personally i change the permission of directories by right clicking the directory, select Properties & change the user & group on the Permissions tab to my username from root

    well that's how i do it, not the official way, but it works

    Edit: in fact that's how i make files executable
     
  5. Tech

    Tech Padawan

    Likes Received:
    0
    Trophy Points:
    0
    I personally choose to use CLI whenever possible. I figure if you know your command line , you'll have great portability across distros :)
     
  6. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    i want to use CLI but i find some things are easier to do with GUI (basically, i've learnt by using & GUI is easier for me, but i do have brain damage & find it difficult to use new things)

    BTW: i switched to *nix cos Windows Product Activation was p1ssing me off & *nix is free[ot]but i still find the subject of repositories very difficult to understand[/ot]and i use swiftweasel - FF because of its built in spellchecker (option already activated in swiftweasel unlike FF i think (but i could be wrong)

    BTW: being on *nix for nearly 2 years
     
  7. zeus

    zeus out of date

    Likes Received:
    0
    Trophy Points:
    36
    Ill try changing the ownership of stuff using commands from Addis. The first thing I did was right click files and set them to rik user but they usually reset themselves often immediately.

    I cant right click and mount my usb stick either. I have to use the command line so hopefully these permission commands will work.
     
  8. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    why, have you got USB stuff installed with a package manager like Synaptic ?
     
  9. zeus

    zeus out of date

    Likes Received:
    0
    Trophy Points:
    36
    I dont know, I just plugged it in and it appeared but it didnt mount.
    I dint install anything to get as far as I did.
     
  10. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    fire up your package manager (Synaptic is default on Ubuntu, not sure i the USB stuff are installed by default) and scroll to USB & inssall 3 of the 4 USB programs (leave USB Mgr uninstalled) now your USB pen should automount to your desktop, if any partitions are on the USB pen

    Edit: or i think you could mount in by editing /etct/fstab, however that would require a reboot

    Edit BTW: are you using Ubuntu ? And are you using Automatix

    Edit: just thought, are their any partitions on the pen ? if not create them with gparted
     
  11. zeus

    zeus out of date

    Likes Received:
    0
    Trophy Points:
    36
    The usb pen is an adapter for my micro sd and sd cards. I use these cards on my phone to install programs and add music to. I dont really want to start messing about with partitions cos I reckon windows mobile will start kicking and screaming!

    I forgot about adding a line to fstab, though Ill try your suggestion about the usb installs in synaptic. I dont know what automatix is and I use a feisty xubuntu.

    I still havent messed with the permissions thing yet. I never seem to find time!
     
  12. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    it shouldn't, try resizing & creating or if you have free space just create new ones, if you that paranoid (like me) then create FAT32 partitions from your phone (however, your mobile although M$ may have disabled partition management on your phone, so you may be able to access <Control Panel> <Administrative Something> <Storage> and alter the partition settings (your Phone's OS can't complain if it made the changes)

    BTW: you may need to activate the control panel icons by right clicking taskbar and finding something like "Display Administrative Tools"

    BTW: i'm guessing as i've never used any mobile Win OS

    Automatix is great and it wofks on *ubuntu (all versions from Dapper upwards) Debian, Pioneer, Mepis ( im using Kubuntu Feisty & Automatix) it takes care of installing a lot of stuff like multimedia, automounter for FAT, FAT32 & NTFS partitions, try Automatix & use it until you know *nix better (although, personally, i love automatix so much i'll never stop using it, unless i really feel like a challenge)

    me neither, i just change the owner & user in properties, & i have nothing but time but something seems to crop up

    BTW Automatix is great

    BTW: don't go back to Win, have some staying power, *nix is worth the effort
     

Share This Page