Find the answer to your Linux question:
Results 1 to 3 of 3
Hello. I have decided to play around with tty(s) linux has and I have created 2 new users. One that will be in charge of media playing (permission granted was ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Jan 2013
    Location
    Argentina
    Posts
    122

    chmod and chown to modify access to several users


    Hello. I have decided to play around with tty(s) linux has and I have created 2 new users.

    One that will be in charge of media playing (permission granted was standard user) and the other one that will be an administrator in charge of backing-up the system. Physically, all 3 users would be me. I'm just trying to learn a bit about this to be able to apply it in a couple of years at a job.

    For the purpose of this thread, let's call them like this:
    ivan: original account created when system was installed (System Administrator).
    ivan-media: intended for media playing (Standard User).
    ivan-backup: support / backup (System Administrator).

    Current situation is as follows:
    I have a NTFS partition used for Backups and I'm trying to change the permissions on the whole logical disk to be 755, so that owner (user1) can have full access to the file/s and the other users of the machine can at least list and read files.

    I have tried the following logged in as user1:

    Code:
    $sudo chown -v ivan /media/506C1EA132F525C2
    [sudo] password for ivan: 
    ownership of `/media/506C1EA132F525C2' retained as ivan
    $ sudo chmod -Rv 744 /media/506C1EA132F525C2
    (Above command results ommited as it was too large to display)

    Result was that files permissions were changed from 0600 (rw-------) to 0744 (rwxr--r--).

    However:
    Code:
    $ls -l
    drwx------ 1 ivan ivan 4096 May  1 08:38 506C1EA132F525C2
    Similar thing happened to its content.

    Any ideas?

    Thank you in advanced. =)

    EDIT: I've tried what was suggested here, but nothing has changed. Apparently it kicks me out (Error was Permission denied or similar, I don't recall exactly). Permissions remain unaltered.
    Last edited by ivotkl; 05-02-2013 at 01:09 PM.

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,763
    Can you try these

    Code:
    sudo chown -Rv ivan:ivan /media/506C1EA132F525C2
    Now change the permission

    Code:
    sudo chmod -Rv 744 /media/506C1EA132F525C2
    is that what you needed?
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  3. #3
    Linux Newbie
    Join Date
    Jan 2013
    Location
    Argentina
    Posts
    122
    Quote Originally Posted by Lakshmipathi View Post
    Can you try these

    Code:
    sudo chown -Rv ivan:ivan /media/506C1EA132F525C2
    Now change the permission

    Code:
    sudo chmod -Rv 744 /media/506C1EA132F525C2
    is that what you needed?
    Thank you for the reply Lakshmipathi.

    It is, and files are changed from 0600 permission to 0744 according to verbose output.

    However, when I type:
    Code:
    ~$ ls -l /media/506C1EA132F525C2
    I get, for example:
    Code:
    drwx------ 1 ivan ivan   4096 Apr 29 23:29 Images
    I've been told it has to do with GNU/Linux and UNIX systems not being able to change permissions on files that are inside a NTFS/FAT32 partition. The thing is that I want it to be NTFS/FAT32 in order to retrieve files inside from any OS/ Live OS pendrive in case my system breaks (or in case I break the system trying things out, hehe). =/

    EDIT: would it work if I create a group and grant permissions to the group or does it have to do indeed with previous paragraph?

  4. $spacer_open
    $spacer_close

Posting Permissions

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