- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: folert Permissions ...can not execute file..
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 12:37 AM
03-13-2008 12:37 AM
folert Permissions ...can not execute file..
here is /etc/passwd:
root:x:0:1:Super-User:/:/bin/bash
newuser:x:60106:1:testtest:/export/home/newuser:/bin/sh
but this newuser can not execute any on scripts in directory but I put as root 777 Permissions to that directory..still not working..
any help...:(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 01:03 AM
03-13-2008 01:03 AM
Re: folert Permissions ...can not execute file..
Please login with newuser and cd to directory that you create script file. If newuser cannot please check directory permission. If it can cd to that directory run ./<script_file>. let me know error mesg if it failed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 01:10 AM
03-13-2008 01:10 AM
Re: folert Permissions ...can not execute file..
you also need at least 555 permissions to the scripts inside the directory.
Also are there other scripts inside the scripts?
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 01:11 AM
03-13-2008 01:11 AM
Re: folert Permissions ...can not execute file..
echo testtest> /export/home/newuser/User.cron
cd works perfect..but if I want to execute it I get:
./test.tmp: /export/home/newuser/User.cron: Permission denied
I guess it can not write file into directory..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 01:38 AM
03-13-2008 01:38 AM
Re: folert Permissions ...can not execute file..
>script (test.tmp) is simple:
>echo testtest> /export/home/newuser/User.cron
>
>./test.tmp: /export/home/newuser/User.cron: >Permission denied
So check the permissions of /export/home/newuser/User.cron
V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 02:51 AM
03-13-2008 02:51 AM
Re: folert Permissions ...can not execute file..
User.cron is a file that can not be created by that script into certani directory..
I do not know why..
Or more clear what should I do with root created directory in order to be able to write into it certain user created files..
and how?
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 03:30 AM
03-13-2008 03:30 AM
Re: folert Permissions ...can not execute file..
you have to open permissions for these directories - the better solution would be to open permissions for a certain group and to assign the needed users to this group.
So you don't have to open permissions for the 'world'.
Can you create a file in this directory by 'touch'?
V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 04:04 AM
03-13-2008 04:04 AM
Re: folert Permissions ...can not execute file..
touch: tempFILE cannot create
$
right...can not create file in directory..:(
how to enable this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 04:51 AM
03-13-2008 04:51 AM
Re: folert Permissions ...can not execute file..
Which group does newuser is in?
V.
*BTW. - you should work on your points assignment rate:
You have assigned points to 91 of 240 responses
http://forums11.itrc.hp.com/service/forums/pageList.do?userId=CA1394601&listType=unassigned&forumId=1 *
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 05:04 AM
03-13-2008 05:04 AM
Re: folert Permissions ...can not execute file..
The first thing you should immediately do is change this back to the proper shell:
root:x:0:1:Super-User:/:/sbin/sh
Root can't have any other shell but this one. If you insist, you can execute your favorite shell once you login.
>./test.tmp: /export/home/newuser/User.cron: Permission denied
To find the permission problem you need to do:
$ id
$ ll /export/home/newuser/User.cron
$ ll -d /export/home/newuser /export/home /export
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 05:15 AM
03-13-2008 05:15 AM
Re: folert Permissions ...can not execute file..
>To find the permission problem you need to do:
>$ id
you have to add to do it as 'newuser' ;-P
V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 05:34 AM
03-13-2008 05:34 AM
Re: folert Permissions ...can not execute file..
why is it problem if my root has any other shell..that has to do nothing with my problem..
as I mentioned /etc/passwd:
root:x:0:1:Super-User:/:/bin/bash
newuser:x:60106:1:testtest:/export/home/newuser:/bin/sh
new user has no right to write in any directory?? why and how to enable newuser to be able to for example to: touch newFILE
that is topic..
THANKS fot time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 05:41 AM
03-13-2008 05:41 AM
Re: folert Permissions ...can not execute file..
so show us
ll of /export/home/newuser /export/home /export
The hint about the root shell was only a good tipp from Dennis when you have a normal designed file system where root could have problems to find /bin if you are in single user mode.
And so maybe will have problems to login ...
V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 05:50 AM
03-13-2008 05:50 AM
Re: folert Permissions ...can not execute file..
ll ??of /export/home/newuser /export/home /export
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 05:56 AM
03-13-2008 05:56 AM
Re: folert Permissions ...can not execute file..
$id
I get this:
$ id
uid=60106(newuser) gid=1(other)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 07:50 AM
03-13-2008 07:50 AM
Re: folert Permissions ...can not execute file..
'ls -l' equal ll (small LL)
V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 07:29 PM
03-13-2008 07:29 PM
Re: folert Permissions ...can not execute file..
If you have to go into single user mode or maybe reboot, you'll be hosed.
>new user has no right to write in any directory?? why and how to enable newuser ...
If you set it up that way. Of course it can write to /tmp and /var/tmp.
To be able to write to the user's home directory, it has to be owned by the user and have the proper permissions.
>I do not get it what is that I should provide?? ll ?? of
Those 3 shell commands I mentioned, executed by newuser. "ll -d" of those paths.
>uid=60106(newuser) gid=1(other)
(It is probably a good idea to assign another group name, other than "other".)
Anyway, we need to see those ll(1) commands so we can check the directory/file permissions with the UID of 60106.
>V: you have to add to do it as 'newuser'
(It would be obvious if done incorrectly. :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2008 12:06 AM
03-14-2008 12:06 AM
Re: folert Permissions ...can not execute file..
Yep but then you'd have to ask again ;-)
amonamon - not a bad tipp from Dennis: change your script to see if you can create a file in /tmp
A strange case - this should be solved in a very short time ... do you know, that you need also read/execute permissions for a directory to go through (yes - I know that's a silly question ...)
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2008 12:57 AM
03-14-2008 12:57 AM
Re: folert Permissions ...can not execute file..
$ ls -ld /export
drwxr-xr-x 3 root sys 1024 Mar 12 09:01 /export
$
$ ls -ld /export/home
drwxr-xr-x 27 root root 2048 Mar 7 14:59 /export/home
$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2008 01:07 AM
03-14-2008 01:07 AM
Re: folert Permissions ...can not execute file..
You can't create a directory with the command echo!
You only can create a file if it doesn't exist.
The directory MUST exist!
Do a mkdir before (either in the script or by root!
If newuser shall create the directory he need write permissions, so /export/home has to have 777 permissions or better change group of this dir to 'other' and use 775 permissions.
Volkmar