Sponsored Content
Operating Systems Linux Red Hat chroot sftp, samba share, ownership issue linux hosts Post 302631435 by bobby320 on Friday 27th of April 2012 10:17:37 AM
Old 04-27-2012
chroot sftp, samba share, ownership issue linux hosts

Hello,

I have sftp server with chroot for a group[sftpgroup] and username is [sftpuser] on a Linux host, I have created a few subdirectories under sftpuser home directories with 775. Then using a Samba I shared this user home directory to another linux client.

On the Linux client, I have jboss user to access these subdirectories to perform read, write, move and delete operations. I created a sftpgroup on the client host, and added secondary group to Jboss user and also created the jboss user on the sftpserver and assigned sftpgroup as secondary group.

now the issue on the linux client is, when ever user jboss creates a new file, under these shared sub-directories, the ownership permission on file are being updated with sftpuser and sftpgroup. Not sure how to pass the local ownership credentials to the file.

Thanks
 

10 More Discussions You Might Find Interesting

1. Linux

Samba share script

Hi everyone! I'm trying to run a script when a folder is shared and when it stop being shared. Is there something like .start_share or .stop_share scripts in Samba where I could run some commands?:confused: edit: maybe with a wrapper in smbmount but I share folders via nautilus. Any ideas? (0 Replies)
Discussion started by: funyotros
0 Replies

2. Solaris

SSH & SFTP Chroot

Hello all, does anybody knows a procedure to enable an chroot for users using ssh and sftp ? Thanks (1 Reply)
Discussion started by: celord
1 Replies

3. Solaris

samba issue: one samba share without password prompting and the others with.

Hi All, I've been trying to configure samba on Solaris 10 to allow me to have one share that is open and writable to all users and have the rest of my shares password protected by a generic account. If I set my security to user, my secured shares work just fine and prompt accordingly, but when... (0 Replies)
Discussion started by: ideal2545
0 Replies

4. Red Hat

sftp jail chroot env setup

Hi I need a specific user to be able to sftp to a server and get files from a specific location. The location is not the users home dir, i don't want the user to be able to view anything else apart from the files in that area. e.g ftp file are is - /logging/phplogs e.g user home is... (1 Reply)
Discussion started by: duckeggs01
1 Replies

5. Red Hat

Chroot sftp users, remote sftp login shows wrong timestamp on files

Hello, I have a weird issue, I have RHEL 5.7 running with openssh5.2 where sftpgroup OS group is chroot. I see the difference difference in timestamp on files, when I login via ssh and SFTP, I see four hour difference, is something missing in my configuration. #pwd... (8 Replies)
Discussion started by: bobby320
8 Replies

6. AIX

sftp chroot + winbind + ad

I have next configuration : - AIX 5.3 (5300-11-03-1013) - pWare.SAMBA 3.5.8.1 - OpenSSH 5.2.0 - OpenSSL 0.9.8 Now, to be more clearly I'll explain what I need indeed. My task is set up integration AIX server to Active Directory 2008 with Samba (Winbind) for chrooted SSH connections. It... (3 Replies)
Discussion started by: jess_t03
3 Replies

7. Red Hat

Samba share problem in Linux 6.4

Hi , In samba i have shared my home directory, but its showing as a printer. Not able to share data. $ smbclient -L 192.168.122.1 Enter priyank's password: Domain= OS= Server= Sharename Type Comment --------- ---- ------- shared_priyank Printer ... (3 Replies)
Discussion started by: Priy
3 Replies

8. Linux

Force file ownership of a domain user in samba Share

Hi, I am using RedHat 6 and ,I am trying to force a domain user (from Windows AD) to take ownership of a file when it is created, or copied on a Samba share. I have managed to get this working for the root user using the code below: COMMENT = IT Data Share path =... (2 Replies)
Discussion started by: p2bas
2 Replies

9. Red Hat

Samba share - currently not working

Long running samba share. Never have any problems, Suddenly started asking windows users for password - which doesnt work. Tried to manually reset smb password and manually map - still wrong password. Restart samba? (2 Replies)
Discussion started by: psychocandy
2 Replies

10. UNIX for Advanced & Expert Users

Mounting a samba share

Hi, I need to mount a directory from a Windows server to a CentOS box. The Windows server used is Windows Server 2003, and the path to the directory that I want to mount on CentOS is C:\Tomcat6\webapps\NASApp\logs. I am not sure of the correct way to mount this on CentOS, as most of the... (2 Replies)
Discussion started by: anaigini45
2 Replies
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)
All times are GMT -4. The time now is 03:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy