Comments (7)
Good to know. Not being able to specify what shell su runs may potentially cause
issues, as there's no way of knowing whether the user's shell will work
correctly
etc. Here's the command that's currently run for me:
cd ~ && /usr/lib/neatx/nxserver --proto=3030000 -- diamond
Original comment by kormat
on 22 Jul 2009 at 4:52
from neatx.
The "~" might need a later shell, perhaps using $HOME or missing it out
altogether as
it's the default anyway would be more portable.
Original comment by [email protected]
on 22 Jul 2009 at 5:00
from neatx.
It's not the default though - that's why we had to add it in.
Original comment by kormat
on 22 Jul 2009 at 5:19
from neatx.
At least not everywhere, i mean. Ubuntu:
root@asher:~(1:0)# su diamond -c pwd
/root
Fedora:
[root@fedora10 etc]# su diamond -c pwd
/etc
Original comment by kormat
on 22 Jul 2009 at 5:21
from neatx.
No, I mean the shell's cd defaults to changing the current working directory to
the
user's home directory if no directory is specified. IOW, "cd &&
/usr/lib/neatx/nxserver --proto=3030000 -- diamond" would be OK and more
portable.
Original comment by [email protected]
on 22 Jul 2009 at 6:02
from neatx.
Ahh, right. Ok, after consulting the man pages for su on bsd and linux, i think
this
can work portably. Sending out a patch for review.
Original comment by kormat
on 22 Jul 2009 at 6:42
from neatx.
Patch committed. Thanks for pointing this out & suggesting a fix.
Original comment by kormat
on 23 Jul 2009 at 8:58
- Changed state: Fixed
from neatx.
Related Issues (20)
- NX> 500 Internal error (just after user logs in) HOT 1
- Alt-Gr key keeps locked - keyboard scramble HOT 1
- Cannot start session
- DHCP vs Static HOT 3
- Incorrect using of su
- Unable to start session:
- The Mac OSX client can not connect to my server. HOT 2
- Tarball does not include RPM files for 'rpmbuild -ta'
- neatx.spec file has version 0.1, not 0.3.1, and other issues
- No multiple keyboard layout support HOT 4
- ib HOT 1
- "Authentication failed for user" if using fish shell
- Text is not recognised in Gnome/gtk programs in Ubuntu 10.10 HOT 2
- client crashing when trying to use shadow mode
- d /var/lib HOT 1
- After Python 2.6 upgrade on Ubuntu 10.10 log in fails
- var/lib HOT 1
- Reconnecting to session hangs with "Session didn't become ready in time" message HOT 2
- Create a distfile for to permit the ports creation for freebsd HOT 2
- Removing FreeNX To Install Neatx
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neatx.