How to create user to control on specific service and its associate file or directory ???

Posted on 2007-08-09
Last Modified: 2013-11-05
Dear Xpert,

I want to create one user or group in SuSE to allow to access only :

=> /etc/xxx/file1   --> could read and write on file1 only
=> and this user could start | stop some service like ----> rcSuSEfirewall2 ...

Your help please !!!
Question by:ikhmer
    LVL 48

    Accepted Solution


    1.  If you have more than 1 user that needs read/write access to a specific file, then create a specific group and put all the users who need access to the file in that group, then make sure the perms on the file are 660 and with the correct group.

    2.  Create a sudo entry for giving stop/start privs to a service.

    Author Comment

    Could you please kindly give me the sample of sudo configuration file ? on how to grant a user to
    start|stop only specific service like  rcSuSEfirewall2 and rcnetwork ???


    Author Comment

    Thanks, it work now

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    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…
    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

    754 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