Page 1 of 4 123 ... LastLast
Results 1 to 10 of 34

Thread: How to password protect an application upon its launch?

  1. #1
    Join Date
    Feb 2011
    Location
    127.0.0.1
    Posts
    472

    Default How to password protect an application upon its launch?

    I have Red notebook, a free application for note-taking. It doesn't have password protection upon its start, so I would like to be able to set a password to prevent someone who temporarily uses my computer from opening it and accessing my journal. One way is to edit the .desktop file in $HOME/Desktop and change the
    Code:
    Exec=/usr/bin/rednotebook
    to
    Code:
    Exec=kdesu /usr/bin/rednotebook
    , but then if I introduce the kdesu password it won't prompt me again if I restart Red notebook. Is there a way to set a different password from kdesu and be prompted with it each time I open Red notebook?
    Reliable + rider = RiDeR PlUs
    ...if you find this helpful, click on the star below...
    +-+ +-+
    |r| |+|
    +-+ +-+

  2. #2
    Join Date
    Feb 2011
    Location
    127.0.0.1
    Posts
    472

    Default Re: How to password protect an application upon its launch?

    one way is:
    Code:
    cd .kde4/share/config/
    then
    Code:
    kwrite kdesurc
    and change "Keep" from true to false, then logout and login, and you will be prompted with password each time you fire up kdesu.

    But is there any other alternative to be prompted with password when I launch Red notebook?
    Reliable + rider = RiDeR PlUs
    ...if you find this helpful, click on the star below...
    +-+ +-+
    |r| |+|
    +-+ +-+

  3. #3
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,370
    Blog Entries
    3

    Default Re: How to password protect an application upon its launch?

    Quote Originally Posted by riderplus View Post
    But is there any other alternative to be prompted with password when I launch Red notebook?
    Create a separate user login account for the somebody who temporarily uses your computer. That way, the temp user will see his own journal, rather than your journal.
    openSUSE Leap 15.1; KDE Plasma 5;

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,884

    Default Re: How to password protect an application upon its launch?

    Quote Originally Posted by riderplus View Post
    . someone who temporarily uses my computer ...
    That "someone" should have his/her own userid. And you should never tell your password to anybody. That is how security is organised in a multu-user operating system like Unix/Linux.
    Henk van Velden

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,884

    Default Re: How to password protect an application upon its launch?

    Quote Originally Posted by riderplus View Post
    Code:
    Exec=kdesu /usr/bin/rednotebook
    This is ridisculous, then you run the application as root!
    Henk van Velden

  6. #6
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,662
    Blog Entries
    14

    Default Re: How to password protect an application upon its launch?

    That's breaking the basics of linux security: root owns the system, each user owns his/her homedir. The user login is the door to your vault. Using a password there is what makes your safety / security, not for a single app.
    My kids know they cannot and shall not use anything in my account. "Switch user" is their option. They login on their own accounts to do whatever they want.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How to password protect an application upon its launch?

    On 2013-11-13 12:36, riderplus wrote:
    >
    > I have Red notebook, a free application for note-taking. It doesn't have
    > password protection upon its start, so I would like to be able to set a
    > password to prevent someone who temporarily uses my computer from
    > opening it and accessing my journal. One way is to edit the .desktop
    > file in $HOME/Desktop and change the


    No, you are looking at it wrong.

    You already have a password, your user password: that's the one you have
    to use. Do not allow other users to run your desktop, give them their
    own user login and password. They will then not see ANY of your files.

    Of course, you have to edit the data files permissions so that the
    "group" and "other" permissions are cleared.

    Of course, if they boot with a live CD, they will have access to
    everything. In that case, you migth consider encryption.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.3 x86_64 "Dartmouth" at Telcontar)

  8. #8
    Join Date
    Feb 2011
    Location
    127.0.0.1
    Posts
    472

    Default Re: How to password protect an application upon its launch?

    Quote Originally Posted by robin_listas View Post
    On 2013-11-13 12:36, riderplus wrote:
    >
    > I have Red notebook, a free application for note-taking. It doesn't have
    > password protection upon its start, so I would like to be able to set a
    > password to prevent someone who temporarily uses my computer from
    > opening it and accessing my journal. One way is to edit the .desktop
    > file in $HOME/Desktop and change the


    No, you are looking at it wrong.

    You already have a password, your user password: that's the one you have
    to use. Do not allow other users to run your desktop, give them their
    own user login and password. They will then not see ANY of your files.

    Of course, you have to edit the data files permissions so that the
    "group" and "other" permissions are cleared.

    Of course, if they boot with a live CD, they will have access to
    everything. In that case, you migth consider encryption.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.3 x86_64 "Dartmouth" at Telcontar)
    Oh, man...I didn't refer to this, I don't know why everyone misunderstood...I was asking for a way to launch the program and request the password upon start, if someone tries to use my computer when I'm not at my desk, for instance. I don't know why you pushed this issue to Linux security itself. I know it's related to Linux security, but it doesn't involve those security issues you've all raised.
    Reliable + rider = RiDeR PlUs
    ...if you find this helpful, click on the star below...
    +-+ +-+
    |r| |+|
    +-+ +-+

  9. #9
    Join Date
    Feb 2011
    Location
    127.0.0.1
    Posts
    472

    Default Re: How to password protect an application upon its launch?

    A bug has already been filed on this issue HERE
    Reliable + rider = RiDeR PlUs
    ...if you find this helpful, click on the star below...
    +-+ +-+
    |r| |+|
    +-+ +-+

  10. #10
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,884

    Default Re: How to password protect an application upon its launch?

    Quote Originally Posted by riderplus View Post
    A bug has already been filed on this issue HERE
    That seems to be some sort of security to be implemented in the application itself. As you say, it has nothing to doo with Linux security. But why are you then trying to do something on the Linux level where it should be programmed in the application?
    Henk van Velden

Page 1 of 4 123 ... LastLast

Tags for this Thread

Posting Permissions

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