02-06-2018
Quote:
Originally Posted by
rbatte1
Another way might be to NFS mount the filesystem to a server you don't care about and give them access to that. You can set the share and/or the mount options to be read-only.
If you don't have a spare server, could you share/mount it back to yourself read-only and chroot the user account to that mount point. You need to make sure that they can't escape out again though without logging off. You might get away with exec chroot /read-only-fs in their normal .profile, but you'd need to test it. I haven't done this, it's just a theory.
I hope that this helps,
Robin
Sounds like a good idea. Remind me - if I share/mount it back to the other server (as RO) does it give me read permission to every file?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
how do you fsck the / filesystem? I know it does it automatically the next time I boot up following a switch on the wall shutdown but is there a flad somewhere that forces this on next boot up?
Thanks (2 Replies)
Discussion started by: DGK
2 Replies
2. UNIX for Advanced & Expert Users
Actually I want to display the entire output fired by ps command. My output gets trucated after 80 chars.
Thus, i am not able to see the entire command running when i give a ps -eaf ....
Does anyone know how do i display the entire output fired by ps command .. (i.e the command along with... (5 Replies)
Discussion started by: vinithepoo
5 Replies
3. Shell Programming and Scripting
Guys,
I am trying to read the whole file using while loop but when i run the ssh part of the script it reads only the first line and exit after that.
There are in total 134 lines in the file, but when the output is redirected, it does only for one line and comes to command prompt.
pls help..... (11 Replies)
Discussion started by: sdosanjh
11 Replies
4. Shell Programming and Scripting
I am using the time-honored construct "while read field1 field2 field3 ; do" to pull delimited fields from lines of data in a file, but there are a few places within the loop where I need to manipulate the entire, unsplit line of data. Does "while read" keep each entire record/line somewhere prior... (2 Replies)
Discussion started by: fitzwilliam
2 Replies
5. UNIX for Dummies Questions & Answers
Hello-
I am trying to view a file which is quite large. However, whenever I do 'cat (file name)' it shows me just the half.. I am using Putty to access my server.
Also, is it possible to edit a file from a unix system on a 'Gedit for Windows" text editor?
Thanks (7 Replies)
Discussion started by: DallasT
7 Replies
6. AIX
Dear all,
We are facing prolem when we are going to mount AIX filesystem, the system returned the following error
0506-307The AFopen call failed
: A file or directory in the path name does not exist.
But when we ls filesystems in the /etc/ directory it show
-rw-r--r-- 0 root ... (2 Replies)
Discussion started by: m_raheelahmed
2 Replies
7. Shell Programming and Scripting
Hi
I am new to writing script and want to use a Bash Piped while-read and read from user input.
if something happens on server.log then do while loop or if something happend on user input then do while loop.
Pseudocode something like:
tail -n 3 -f server.log | while read serverline || read... (8 Replies)
Discussion started by: MyMorris
8 Replies
8. UNIX for Dummies Questions & Answers
Hi everyone,
I've installed RedHat 5 enterprise into a VirtualBox, but some how i can't eve create a single file, cause appear u message like this:
Read-only filesystem.
i'm logged as root.
Any idea (6 Replies)
Discussion started by: Newer
6 Replies
9. Shell Programming and Scripting
Hello,
I heva a problem creating a script that read specifc value from all the files of an entire folder
I have a number of email files into a directory and i need to extrect from each file 2 specific values.
After that i have to put them into a new file that looks like that:
To: value1
... (1 Reply)
Discussion started by: ahmenty
1 Replies
10. Solaris
Hi,
i just started few days ago to face the problem when the whole system is getting freeze. By freeze i mean:
* server is reachable (via network)
* i cannot connect to server via SSH or Telnet(when try to use SSH or telnet it will find server, try to connect, but it freeze after... (4 Replies)
Discussion started by: frankosun
4 Replies
LEARN ABOUT DEBIAN
ltsp-chroot
ltsp-chroot(8) ltsp-chroot(8)
NAME
ltsp-chroot - Chroots into a specific LTSP thin client chroot
SYNOPSIS
ltsp-chroot <options>
DESCRIPTION
ltsp-chroot chroots into a specified LTSP chroot. Optional arguments can be provided to customize the chroot location as well as extra
mounts. If present, default arguments will be read from the configuration file /etc/ltsp/ltsp-chroot.conf, and overwritten with used com-
mand line options.
OPTIONS
-a --arch arch
Sets the architecture of the target chroot. Defaults vary by distribution.
-b --base dir
Sets the path of the target chroot. Defaults to /opt/ltsp/.
-c --mount-package-cache
If set, mounts the server package directories to the chroot previous to chrooting. Settings vary by distribution.
-d --mount-dev
If set, mounts the server dev and devpts directories to the chroot previous to chrooting.
-p --mount-proc
If set, mounts the server proc to the chroot previous to chrooting.
-m --mount-all
If set, mounts the proc, dev and package directories to the chroot before chrooting.
-p --copy-resolv-conf
If set, copies the server resolv.conf to the chroot previous to chrooting.
-h --help Displays the ltsp-chroot help message.
SEE ALSO
ltsp-build-client(8),
AVAILABILITY
ltsp-chroot is part of ltsp package and the latest versions are available in source form from https://launchpad.net/products/ltsp.
MAN PAGE AUTHOR
Wim Muskee <wimmmuskee@gmail.com>
2012-02-11 ltsp-chroot(8)