Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cant use bash as regular user
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Bia
n00b
n00b


Joined: 27 May 2011
Posts: 65

PostPosted: Sat Nov 12, 2011 3:31 pm    Post subject: cant use bash as regular user Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54239
Location: 56N 3W

PostPosted: Sat Nov 12, 2011 4:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Sat Nov 12, 2011 4:01 pm    Post subject: Re: cant use bash as regular user Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum