Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Allow tab completion in rbash

I have restricted user, whose default shell is rbash. Now, I would like to allow the TAB completion feature for this user for his/her home directory, instead of getting this error:

-rbash: /dev/null: restricted: cannot redirect output
-rbash: /dev/null: restricted: cannot redirect output
bash: _upvars: `-a2': invalid number specifier
-rbash: /dev/null: restricted: cannot redirect output
bash: _upvars: `-a0': invalid number specifier

How can I do this for restricted user?

like image 360
TomiL Avatar asked Oct 22 '22 05:10

TomiL


1 Answers

Change permission of /dev/null to 666

chmod 777 /dev/null
like image 150
iman mir Avatar answered Oct 23 '22 18:10

iman mir