Results 1 to 10 of 10

Thread: win2003server: problem with user permission

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2007
    Location
    Italy
    Posts
    172
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    39

    Default win2003server: problem with user permission

    Hello, i compiled my app and i installed it under win2003server as admin.
    If i run my app as admin i've not problem, but if i run it as simple user i can't create directories and files, i have no this permission.

    The directory path, where to save data, are saved with QSetting in some keys, for example, they are in:

    HKEY_CURRENT_USER->Software->myapp
    keyname: path
    keyvalue: C:\Documents and settings\admin\myapp

    this for admin user.
    Now, i switch user and i try with a simple user, the key "path" is always in the same place with the same value..., so when i lunch my app and i try to write a directory on filesystem i get an error, but a normal user can't write in "C:\Documents and settings\admin\myapp" 'cause , he/she has not the permission.

    I hope i've been clear
    What should i do to fix it?
    thx

    edit
    -------------------------------
    to retrieve the path where to save data i use:
    QDir::home ().absolutePath()
    Last edited by mattia; 12th February 2008 at 11:44.

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
  •  
Qt is a trademark of The Qt Company.