Armin,

It is a permissions thing ...

vi creates a temp file in /var/tmp/ which is only writable by root, so it exits 
for non-root users.

Though "nano" works for non-root users.  Good enough for editing 
~/.bash_profile .

Additionally, our new upstream "restricted" users using /bin/rbash can't edit 
at all, so not an issue there.

Lonnie



On Feb 17, 2017, at 1:19 AM, Armin Tüting <armin.tuet...@tueting-online.com> 
wrote:

> Greetings.
> 
> I'm unable to edit a simple text file as non-root.  vi ~/.bash_history
> returns back to the shell.
> 
> $ stat ~/.bash_profile 
>   File: '/home/admin/.bash_profile' -> 'dotfiles/bash/profile'
>   Size: 21            Blocks: 0          IO Block: 4096   symbolic
> link
> Device: 803h/2051d    Inode: 138453      Links: 1
> Access: (0777/lrwxrwxrwx)  Uid: (50001/   admin)   Gid:
> (50001/   admin)
> Access: 2016-11-22 18:24:59.000000000
> Modify: 2015-01-22 09:45:03.000000000
> Change: 2016-11-22 18:24:59.000000000
> 
> Any hints?
> 
> Regards,
> Armin.
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Astlinux-users mailing list
> Astlinux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/astlinux-users
> 
> Donations to support AstLinux are graciously accepted via PayPal to 
> pay...@krisk.org.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

Reply via email to