View previous topic :: View next topic |
Author |
Message |
Bia n00b
Joined: 27 May 2011 Posts: 65
|
Posted: Sat Nov 12, 2011 3:31 pm Post subject: cant use bash as regular user |
|
|
hi... i need to install app .. but when run it with bash as admin it says i need to be logged as regular user so i did but then i cant use bash it says
Code: | bash: /root/blabla.sh: Permission denied |
how do i solve this? is there certain group wich can use bash, so i can add my user acc to it? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54239 Location: 56N 3W
|
Posted: Sat Nov 12, 2011 4:00 pm Post subject: |
|
|
Bia,
As a normal user you have no access to anything in /root Thats the root users home dir.
To run blabla.sh as a normal user, put it /home/<normaluser>
Change its owner to <normaluser> and make sue it has the eXecute bit set in the file permissions.
You should not be able to install applications system wide as a normal user but if they go into /home<normaluser> it will work. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Sat Nov 12, 2011 4:01 pm Post subject: Re: cant use bash as regular user |
|
|
Bia wrote: | hi... i need to install app .. but when run it with bash as admin it says i need to be logged as regular user so i did but then i cant use bash it says
Code: | bash: /root/blabla.sh: Permission denied |
how do i solve this? is there certain group wich can use bash, so i can add my user acc to it? |
The problem is not bash, but the script. And more concretely, the fact that:
- it resides into /root, which is the home folder for the root user, and can't be accessed by anyone else.
- it (the script) is probably owned by root.
So, you either copy it to another folder and chown it to be property of the regular (non-root) user, OR download it again as a regular user and save it in your home folder. Then you should be able to open it. |
|
Back to top |
|
|
|