permission issue to move file


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting permission issue to move file
# 8  
Old 12-11-2008
Guys i missed first line in script

#!/usr/bin/bash

is it cause any problem.....?

And the application user was alredy added as a group of FTP user account

Then the sheel type of this user are /bin/false

to enable SFTP its changed to /bin/ksh
# 9  
Old 12-11-2008
Quote:
Originally Posted by jimbalaya
You could set an ACL on the home directory to give the group write access:

The command is either setacl or setfacl, depending on your distro.

Code:
setfacl -m g:groupname:rwx /home/directory

I don't believe ssh has issues with ACL's being less restrictive than regular unix file permissions.

Hi jimbalaya

It works but in the following way

the one that you gave makes an entry while checking with getfacl it does not have effective part as

# file: master
# owner: master
# group: adm
user::rwx
user:user:rwx #effective:---
group::--- #effective:---
mask:rwx
other:---

When i try with setfacl -m u:user:rwx,m:rwx /home/master

it gaves as


# file: master
# owner: master
# group: adm
user::rwx
user:user:rwx #effective:rwx
group::--- #effective:---
mask:rwx
other:---


But here the problem was when i grant permission the sftp connection to the master account was failing it cannot connect using public keys...

It again pointing to same problem mentioned in the First post....

I thought of dong some script correection to make this happen or some other ways to sort out.......


Any one please do help.....

Last edited by GIC1986; 12-17-2008 at 06:15 AM..
# 10  
Old 12-17-2008
Any one please help ....

The setfacl can make the files move from the path but the problem is it when it was done againg the sftp was failing..


Please help..

Any other alternatives...
# 11  
Old 12-17-2008
Whether the only solution was the schduling the script under the root user??????


Please suggest ...
# 12  
Old 12-17-2008
Quote:
Originally Posted by GIC1986
Whether the only solution was the schduling the script under the root user??????


Please suggest ...
edit by bakunin: I suggest that you read the rules, which state that "bumping up questions" is forbidden. The Problem you are trying to solve might be urgent to you firstly we are not your helpdesk and secondly if you need a certain response time to be met consider hiring a Unix expert instead of posting to forums.

You have been - officially - warned.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Automount permission issue

Hi all, I am running CentOS6.3 and NFS is giving me a real hard time here: on my server a folder called /networkh has created with 777 permissions. I have setup NFS server on this server and it is supposed to serve a network. On my client machine I configed my auto.master: /nethome... (1 Reply)
Discussion started by: bashily
1 Replies

2. AIX

Permission Issue

Hi Team, I am using AIX 6.1 version. I have two log id IDs say (user1 and user2) Both users primary group is same. ex (group1) I have created directory called /logs/app using user1 and permissions are like below /logs ------ drwxrwxr-x /logs/app ----- drwxrwxrwx But all the process... (3 Replies)
Discussion started by: balasubramani04
3 Replies

3. UNIX for Dummies Questions & Answers

Puzzling permission issue

I have a file, the long listing output by 'ls -l' is -rw-r--r-- 1 usera agroup 1246 Jul 7 14:44 temp.R The file is under a Solaris ZFS file system. As a different user (userb), I did cp temp.R /tmp ls -l /tmp/temp.R -rw-r--r-- 1 userb agroup 1246 Nov 16 14:45 /tmp/temp.R ... (14 Replies)
Discussion started by: nugulus
14 Replies

4. HP-UX

Permission Issue on HP-UX

Good day guys, I am very new in UNIX and am trying to install an application which uses an application ID that requires administrative privileges (Full control). In most cases, we use SUDO to grant access to this ID however the customer insisted NOT to use SUDO and Root ID is not to be used to... (1 Reply)
Discussion started by: mcdsweet98
1 Replies

5. OS X (Apple)

file permission issue

-rw-r--r-- 1 root wheel 1676 Jul 8 13:40 group -rw-r--r-- 1 root wheel 3669 Feb 25 2010 passwd -r--r----- 1 root wheel 1242 Jan 26 2010 sudoers I can read group and passwd, but i cant read sudoers.. why? I am curenttly a staff member. (1 Reply)
Discussion started by: linuxstuff101
1 Replies

6. Shell Programming and Scripting

permission denied issue

hello I m trying to enter in a folder through my script but getting permission denied error .. Is there any command or somthing else so that i can access these folder through my script. (3 Replies)
Discussion started by: urfrnddpk
3 Replies

7. Shell Programming and Scripting

issue invoking shell script using cron, even with proper file permission

I am using tcsh what could possibly be a problem, when using crontab to invoke a shell script. ? The script has the read, write and execute permission to all users. And the script works as expected while executing it in stand-alone mode. Is there a way to trace (like log) what error... (9 Replies)
Discussion started by: vikram3.r
9 Replies

8. UNIX for Dummies Questions & Answers

File permission issue

Hello All, I receive a file from another server with file permission rw-r--r-- and owner of the file is the sFTP login id and group is also different from my login id. Due to this I cannot move the file from and also cannot do anything on it. Can anyone help on how to change the file... (2 Replies)
Discussion started by: maddy911
2 Replies

9. UNIX for Dummies Questions & Answers

Sudo permission issue

folks; How can i give a group a sudo permission to execute only some command "like start/stop Apache", so every user in that group can sudo to use this as himself, i mean when he tries to sudo, he will be asked for a password (and make it so he must use his own NT password not a generic one) then... (6 Replies)
Discussion started by: Katkota
6 Replies

10. Shell Programming and Scripting

Setfacl permission issue

My Admin has written a shell script (Filepermission.ksh) with the following commands and provided me 'exeutive' privileges. However, when I try to run the script, I am getting the following error message. Can some one tell me what could be missing? Thank you for your continued support. Script: ... (0 Replies)
Discussion started by: MeganP
0 Replies
Login or Register to Ask a Question