Author Topic: permissions for the paranoid  (Read 873 times)

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
permissions for the paranoid
« on: 5 July 2002, 01:37 »
How can I setup so that a user has no access to anyhting but a couple folders??
would it be??:
chmod 'UID'-rwx -r /
chmod 'UID'+rw /folder/they/have/access/to

how do i find out the UID of a user??

[ July 05, 2002: Message edited by: Master of Reality / Bob ]

Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

rsd

  • Newbie
  • *
  • Posts: 10
  • Kudos: 0
permissions for the paranoid
« Reply #1 on: 6 July 2002, 00:19 »
Well, that does not prevent the user from schmoozing around.

# info chroot

Chroot will confine the user to the specified path.

As for UID, almost all distros have userconf, or kuser (kde) or mandrake has as an add-on userdrake.

But you don't have to worry about UID, you can just chmod/chroot the username.

From console: less /etc/passwd

[ July 05, 2002: Message edited by: rsd ]


Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
permissions for the paranoid
« Reply #2 on: 6 July 2002, 00:25 »
i want to restrict an ssh account user to read/write/execute within only certain directories. I am using no GUI. Chroot can only be used by the super-user. How would i specify it for a specific user if they dont own the file/directory, chmod only allows me to specify either owner, group of owner, all, users not in the group.

[ July 05, 2002: Message edited by: Master of Reality / Bob ]

[ July 05, 2002: Message edited by: Master of Reality / Bob ]

Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

rsd

  • Newbie
  • *
  • Posts: 10
  • Kudos: 0
permissions for the paranoid
« Reply #3 on: 6 July 2002, 01:33 »
http://www.openbsd.org/cgi-bin/man.cgi?query=ssh_config&sektion=5&arch=&apropos=0&manpath=OpenBSD+Current

$HOME/.ssh/config
This is the per-user configuration file.  The format of this file is described above.  This file is used by the ssh client.  This file does not usually contain any sensitive information, but the
recommended permissions are read/write for the user, and not accessible by others.