انجمن‌های فارسی اوبونتو

کمک و پشتیبانی => نرم‌افزارهای فنی-مهندسی => نویسنده: علیرضاامیرصمیمی در 06 اسفند 1391، 09:36 ب‌ظ

عنوان: چه کنم تا برنامه به عنوان root user بتونه به فایلها دسترسی داشته باشه(حل شد)
ارسال شده توسط: علیرضاامیرصمیمی در 06 اسفند 1391، 09:36 ب‌ظ
من برنامه متلب نصب کردم(از همین الان قبول دارم که متن باز نیست و میگید چرا سایلب یا اکتاو استفاده نمیکنی! والا برا دانشگاه مجبورم ](*,))
وقتی برنامه رو با آیکون خودش اجرا میکنم ، اجرا میشه ولی یه سری پیغام خطا میده که نمیتونه به یه سری فولدر دسترسی پیدا کنه
ولی وقتی که از طریق ترمینال با sudo اجراش میکنم مشکل حل میشه
چه کار کنم که برنامه همیشه به عنوان root user به فولدرهام دسترسی داشته باشه
عنوان: پاسخ : چه کار کنم تا برنامه همیشه به عنوان root user بتونه به فایلها دسترسی داشته باشه
ارسال شده توسط: دانیال بهزادی در 06 اسفند 1391، 09:41 ب‌ظ
قبل از دستور اجراش یه gksu بذار.

در ضمن دانشجو نباید برده‌ی نظام آموزشی باشه. من خودم در طول دوران دانشجویی یک بار هم زیر بار حرف زور نرفتم و به هر قیمتی که بود آزادی خودم رو حفط کردم
عنوان: پاسخ : چه کار کنم تا برنامه همیشه به عنوان root user بتونه به فایلها دسترسی داشته باشه
ارسال شده توسط: علیرضاامیرصمیمی در 06 اسفند 1391، 09:49 ب‌ظ
قبل از دستور اجراش یه gksu بذار.

در ضمن دانشجو نباید برده‌ی نظام آموزشی باشه. من خودم در طول دوران دانشجویی یک بار هم زیر بار حرف زور نرفتم و به هر قیمتی که بود آزادی خودم رو حفط کردم
حل نشد عزیز
راستش برای اجراش اگر نخوام از آیکنش استفاده کنم باید توی ترمینال بنویسم
/usr/local/MATLAB/R2012a/bin/matlab -desktop
که آیکون برنامه هم دقیقا همینکار رو میکنه،اجرا میشه ولی ارور میده که من نمیتونم توی یه سری فولدر بنویسم
ولی وقتی از
sudo /usr/local/MATLAB/R2012a/bin/matlab -desktop
استفاده میکنم پس وورد میخوات و باز میشه و مشکل حل میشه

میخوام یه کاری کنم که همیشه اینجوری اجرا بشه و از طریق آیکنش هم اجراش کنم همینجوری اجرا بشه
عنوان: پاسخ : چه کار کنم تا برنامه همیشه به عنوان root user بتونه به فایلها دسترسی داشته باشه
ارسال شده توسط: دانیال بهزادی در 06 اسفند 1391، 09:55 ب‌ظ
بله متوّجهم و جوابش همونیه که بهت گفتم. آیکون برنامه رو ویرایش کن و توش به‌جای usr/local/MATLAB/R2012a/bin/matlab -desktop بنویس gksu usr/local/MATLAB/R2012a/bin/matlab -desktop
عنوان: پاسخ : چه کار کنم تا برنامه همیشه به عنوان root user بتونه به فایلها دسترسی داشته باشه
ارسال شده توسط: علیرضاامیرصمیمی در 06 اسفند 1391، 10:14 ب‌ظ
توی آیکنش اضافه کردم نشد
توی ترمینال
 gksu usr/local/MATLAB/R2012a/bin/matlab -desktop
رو اجرا کردم نوشت

gksu: invalid option -- 'e'
GKsu version 2.0.2

Usage: gksu [-u <user>] [options] <command>

  --debug, -d
    Print information on the screen that might be
    useful for diagnosing and/or solving problems.

  --user <user>, -u <user>
    Call <command> as the specified user.

  --disable-grab, -g
    Disable the "locking" of the keyboard, mouse,
    and focus done by the program when asking for
    password.
  --prompt, -P
    Ask the user if they want to have their keyboard
    and mouse grabbed before doing so.
  --preserve-env, -k
    Preserve the current environments, does not set $HOME
    nor $PATH, for example.
  --login, -l
    Make this a login shell. Beware this may cause
    problems with the Xauthority magic. Run xhost
    to allow the target user to open windows on your
    display!

  --description <description|file>, -D <description|file>
    Provide a descriptive name for the command to
    be used in the default message, making it nicer.
    You can also provide the absolute path for a
    .desktop file. The Name key for will be used in
    this case.
  --message <message>, -m <message>
    Replace the standard message shown to ask for
    password for the argument passed to the option.
    Only use this if --description does not suffice.

  --print-pass, -p
    Ask gksu to print the password to stdout, just
    like ssh-askpass. Useful to use in scripts with
    programs that accept receiving the password on
    stdin.

  --sudo-mode, -S
    Make GKSu use sudo instead of su, as if it had been
    run as "gksudo".
  --su-mode, -w
    Make GKSu use su, instead of using libgksu's
    default.
عنوان: پاسخ : چه کار کنم تا برنامه همیشه به عنوان root user بتونه به فایلها دسترسی داشته باشه
ارسال شده توسط: دانیال بهزادی در 06 اسفند 1391، 10:19 ب‌ظ
دستورت رو هم بذار. اون انتخاب e چیه که ازش ایراد گرفته؟
عنوان: پاسخ : چه کار کنم تا برنامه همیشه به عنوان root user بتونه به فایلها دسترسی داشته باشه
ارسال شده توسط: علیرضاامیرصمیمی در 06 اسفند 1391، 10:36 ب‌ظ
دستورت رو هم بذار. اون انتخاب e چیه که ازش ایراد گرفته؟
نمیدونم دانیال جان
alireza@alireza-HP-Pavilion-dv6-Notebook-PC:~$ gksu /usr/local/MATLAB/R2012a/bin/matlab -desktop
gksu: invalid option -- 'e'
GKsu version 2.0.2

Usage: gksu [-u <user>] [options] <command>

  --debug, -d
    Print information on the screen that might be
    useful for diagnosing and/or solving problems.

  --user <user>, -u <user>
    Call <command> as the specified user.

  --disable-grab, -g
    Disable the "locking" of the keyboard, mouse,
    and focus done by the program when asking for
    password.
  --prompt, -P
    Ask the user if they want to have their keyboard
    and mouse grabbed before doing so.
  --preserve-env, -k
    Preserve the current environments, does not set $HOME
    nor $PATH, for example.
  --login, -l
    Make this a login shell. Beware this may cause
    problems with the Xauthority magic. Run xhost
    to allow the target user to open windows on your
    display!

  --description <description|file>, -D <description|file>
    Provide a descriptive name for the command to
    be used in the default message, making it nicer.
    You can also provide the absolute path for a
    .desktop file. The Name key for will be used in
    this case.
  --message <message>, -m <message>
    Replace the standard message shown to ask for
    password for the argument passed to the option.
    Only use this if --description does not suffice.

  --print-pass, -p
    Ask gksu to print the password to stdout, just
    like ssh-askpass. Useful to use in scripts with
    programs that accept receiving the password on
    stdin.

  --sudo-mode, -S
    Make GKSu use sudo instead of su, as if it had been
    run as "gksudo".
  --su-mode, -w
    Make GKSu use su, instead of using libgksu's
    default.
عنوان: پاسخ : چه کار کنم تا برنامه همیشه به عنوان root user بتونه به فایلها دسترسی داشته باشه
ارسال شده توسط: علیرضاامیرصمیمی در 06 اسفند 1391، 11:35 ب‌ظ
دوستان فهمیدم مشکل چیه
هرکس مشکل من رو داشت کافیه فقط دوتا گیومه بذاره
یعنی به جای
gksu /usr/local/MATLAB/R2012a/bin/matlab -desktop
بنویسه
"gksu "/usr/local/MATLAB/R2012a/bin/matlab -desktop