linux permission

Posted on 2011-10-25
Last Modified: 2012-05-12
as far i belived permission is ok but

user tech cant view the log under a dirctory ..

here is the permission

drwx------  7 mysql root  4096 Oct 25 16:06 mysql1

 id tech
uid=1000(tech) gid=1000(tech) groups=1000(tech),1001(mysql)

so tech is in mysql group... so it should have access on msyql1 directory
but it cant access mysql1  ..

cat /etc/fstab

# /db was on /dev/sdc1 during installation
UUID=5be250b2-8771-4d75-b1c6-d89309895274 /db             ext4    defaults        0       2

can any one give me some lights on this ..

Question by:fosiul01
    LVL 8

    Accepted Solution

    tech1 is dont have access because group of directory is "root", and permissions to group in this directory is "deny all"
    to grant access to this directory you must change group of directory to "mysql", or add permission "read for all" (755)
    LVL 68

    Assisted Solution


    seems that the mysql1 directory belongs to the user mysql, not to the group mysql.

    Moreover, even if the directory belonged to mysql, this group doesn't have any permission (see "---" in columns 5-7).

    LVL 29

    Author Comment


    totally forgot that

    here mysql is user not groups..

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
    Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now