Results 1 to 4 of 4

Thread: Directory permissions problem

  1. #1
    Join Date
    Jul 2010
    Beans
    11

    Directory permissions problem

    Hi,

    I wanted to give NFS a try. So I established a connection to my server via ssh. I created some directories:
    Code:
    /exports/usr/myUser
    /exports/public
    I wanted the myUser directory to be only usable by myUser. I set its permissions like this;
    Code:
    drwx------
    Now I can't even enter the directory. If I grant the read permission to "others", I can enter the directory.

    Why is this?
    What can I do to make the directory only usable by myUser?

    I use the same username on my client machine and the server. When I login I am only asked for the password. How does linux map the users of the to systems? Are they considered to be the same? Does this has anything to do with the problem?

    Thanks in advance.

  2. #2
    Join Date
    Nov 2009
    Location
    istanbul
    Beans
    31
    Distro
    Ubuntu Development Release

    Re: Directory permissions problem

    well this is not realy a solution but if all you want to do is access ur folders u can try using this command in a terminal window

    sudo nautilus /home/USRNAME/Desktop/blah/blah/blah

    that will grant nautilus (that is ur default folder browsing application) sudo privilages so u can access and edit that folder
    "do not gain the world and loose your soul
    wisdom is better thansilver or gold"
    Bob Marley


  3. #3
    Join Date
    Jul 2010
    Beans
    11

    Re: Directory permissions problem

    Thanks for your answer. To clarify: I am able to change the permissions of the diretory in any situation with sudo or sudo -i. So even if I set the permissions that way, that I can't access the directory anymore, I can use sudo to grant the execute permission for "others". After that I can access the directory again.

    The question is:
    If I am logged in as "myUser" and the owner of the directory is "myUser", too, and only the owner has permissions to access the directory, why can't I access the directoy?

    Maybe this is more an owner related issue than an permissions related issue. When I am logged in at my client system with "myUser". Now I connect to the server via SSH. The server somehow recognizes my username. I must only input my password and not the username at this point. So I am logged in as "myUser". The owner of the directory is "myUser", too. Why can't I access the directoy? Or is "myUser" != "myUser" in this case of SSH login?

    Any suggestions? Thanks in advance again.

  4. #4
    Join Date
    Jul 2010
    Beans
    11

    Re: Directory permissions problem

    Forget it. The directory was exactly names as "myUser". I mixed up the name of the directory with its owner, So owner was root and a sime chown fixed the problem.


Tags for this Thread

Bookmarks

Posting Permissions

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