Samba group access permissions

129

Solution 1

Samba has a group by default to allow sharing. To add a user to that group just type sudo gpasswd -a david sambashare. Logout and log back in for the changes to take affect. When you map the network drive in Windows you will need to provide the credentials (linux ones) for david. Your samba configuration might need a little tweaking. Here's mine for example: [Chol] comment = Shares path = /home/chol browseable = yes read only = no public = yes guest ok = no valid users = chol create mask = 0777 writeable = yes

Solution 2

Permissions are fixed by adding the group to the smb.conf file

valid users = @media_users
Share:
129

Related videos on Youtube

Syed Zabi Ulla
Author by

Syed Zabi Ulla

Updated on September 18, 2022

Comments

  • Syed Zabi Ulla
    Syed Zabi Ulla over 1 year

    I know that static members of a class can be directly accessed without the need for the instance of the enclosing class.

    class Outer
    {
        static int a = 10;
    
        public static void main(String[] args)
        {
            System.out.println(a);//without using instance
        }
    }
    

    But, the same static members can also be accessed with the instance of the class as well. As they are shared across all the instances of the particular class.

    class Outer
    {
        static int a = 10;
    
        public static void main(String[] args)
        {
            System.out.println(new Outer().a);//with using instance
        }
    }
    

    All these seem fine only with static variables and static methods and when attempted with static nested class, it results in compilation error: qualified new of static class.

    class Outer
    {
        static class Nested
        {
            int a = 10;
        }
    
        public static void main(String[] args)
        {
            System.out.println(new Outer().new Nested().a);
        }
    }
    

    Similar to other static members, even this should have been possible. Isn't it? Are there any internal details that I am missing out on?