Find the answer to your Linux question:
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 21
Originally Posted by chebarbudo Hi Muhnamana, Did you get any error when typing the commands groupadd , chgrp and chmod . Because obviously, given the output of ls , no ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Just Joined! Muhnamana's Avatar
    Join Date
    Mar 2012
    Location
    Here not there
    Posts
    17

    Quote Originally Posted by chebarbudo View Post
    Hi Muhnamana,

    Did you get any error when typing the commands groupadd, chgrp and chmod.
    Because obviously, given the output of ls, no change was made at all.

    force user is an dangerous option.
    It means that any user will be able to access the share because it will be identified as user1.

    Regards
    Santiago
    No errors were shown except when I forgot to use sudo on the first command. But yes, it seems like those command did absolutely nothing.

    As far as the force user, yes I agree that this is very dangerous and wishes to not go this route. But I threw it in to test and bam, it worked. So it leads me to believe its a samba issue but also a permissions issues as well.

    Is there any way for me to show you command for command on how I enter it?

    Would copying the terminal help?

  2. #12
    Just Joined!
    Join Date
    Mar 2008
    Posts
    20
    Hi there,
    Indeed, can you copy the entire terminal after sending the commands.
    Run a ls as the last command please.
    Santiago
    PS: Maybe you don't need to quote my emails in your responses.

  3. #13
    Just Joined! Muhnamana's Avatar
    Join Date
    Mar 2012
    Location
    Here not there
    Posts
    17
    Sorry, habit. I guess since you've been the only one commenting and helping out I'll refrain from replying with quote.

    I'll run these commands again this evening when I get home from work and post the output.

  4. $spacer_open
    $spacer_close
  5. #14
    Just Joined! Muhnamana's Avatar
    Join Date
    Mar 2012
    Location
    Here not there
    Posts
    17
    Here's the permissions before changing everything:

    Code:
    administrator@UB-DT2-SERVER:~$ ls -ld /{,media/{,MyPassport2}}
    drwxr-xr-x 25 root          root          4096 2012-03-07 19:43 /
    drwxr-xr-x  4 root          root          4096 2012-03-07 20:48 /media/
    drwx------  1 administrator administrator 4096 2012-03-06 20:28 /media/MyPassport2
    I can access the share of /media/MyPassport2 from either my Mac or Windows PC with the administrator account.

  6. #15
    Just Joined! Muhnamana's Avatar
    Join Date
    Mar 2012
    Location
    Here not there
    Posts
    17
    Here's the list of commands I ran...no errors and ignore the line that I ran without sudo...my bad.

    Code:
    administrator@UB-DT2-SERVER:~$ sudo groupadd mypassport2
    administrator@UB-DT2-SERVER:~$ sudo chgrp -R mypassport2 /media/MyPassport2/
    administrator@UB-DT2-SERVER:~$ chmod o+x /media/MyPassport2/   **IGNORE**
    administrator@UB-DT2-SERVER:~$ sudo chmod o+x /media/MyPassport2/
    administrator@UB-DT2-SERVER:~$ sudo find /media/MyPassport2 -type d -exec chmod u=rwx-s,g=rwxs,o= "{}" +
    administrator@UB-DT2-SERVER:~$ sudo find /media/MyPassport2 -type f -exec chmod u=rw-s,g=rw-s,o= "{}" +
    administrator@UB-DT2-SERVER:~$ sudo usermod -aG mypassport2 user2

  7. #16
    Just Joined! Muhnamana's Avatar
    Join Date
    Mar 2012
    Location
    Here not there
    Posts
    17
    And here's the permissions afterwards..seems like nothing changed.

    Code:
    administrator@UB-DT2-SERVER:~$ ls -ld /{,media/{,MyPassport2}}
    drwxr-xr-x 25 root          root          4096 2012-03-07 19:43 /
    drwxr-xr-x  4 root          root          4096 2012-03-07 20:48 /media/
    drwx------  1 administrator administrator 4096 2012-03-06 20:28 /media/MyPassport2

  8. #17
    Just Joined!
    Join Date
    Mar 2008
    Posts
    20
    I just thought about something stupid.
    Can you get your file system type with this command
    Code:
    df -lhT

  9. #18
    Just Joined! Muhnamana's Avatar
    Join Date
    Mar 2012
    Location
    Here not there
    Posts
    17
    Yes I can. Here is the output.

    Something that strikes me as odd, is the /home/administrator/.Private and the lists my external drive. I wonder if this has anything to do with it. I'll highlight it below. Is there a way to not make this private?

    Code:
    administrator@UB-DT2-SERVER:~$ df -lhT
    Filesystem    Type    Size  Used Avail Use% Mounted on
    /dev/sda1     ext4    912G  3.9G  861G   1% /
    udev      devtmpfs    3.0G  4.0K  3.0G   1% /dev
    tmpfs        tmpfs    1.2G  1.4M  1.2G   1% /run
    none         tmpfs    5.0M     0  5.0M   0% /run/lock
    none         tmpfs    3.0G  116K  3.0G   1% /run/shm
    /home/administrator/.Private
              ecryptfs    912G  3.9G  861G   1% /home/administrator
    /dev/sr1       udf    615M  615M     0 100% /media/WD SmartWare
    /dev/sdf1  fuseblk    466G  101M  466G   1% /media/MyPassport2

  10. #19
    Just Joined! Muhnamana's Avatar
    Join Date
    Mar 2012
    Location
    Here not there
    Posts
    17
    Should've I ran all those commands while logged in as user1 or user2?

  11. #20
    Just Joined!
    Join Date
    Mar 2008
    Posts
    20
    Hi Muhnamana,

    The way you did is fine.
    Now I think the problem comes from the fuseblk file system which I'm not familiar with.

    What is MyPassport2? Is it an external USB drive?
    What user plugs it in the first place?

    Can you please post the content of the mount in /etc/fstab and in /etc/mtab, please?
    Code:
    grep /dev/sdf1 /etc/fstab /etc/mtab
    Not sure yet, but my guess is that you'll have to post a new subject: "How to setup permissions on a fuseblk filesystem".
    That's how I would ask the question.

    Waiting for your results.
    Regards
    Santiago

Page 2 of 3 FirstFirst 1 2 3 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
  •